You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems that something has changed with the way values are promoted during array/scalar multiplication:
julia>collect(1:5) * Hz
ERROR: MethodError: Cannot `convert` an object of type Int64 to an object of type SIUnits.SIUnit{0,0,-1,0,0,0,0,0,0}
This may have arisen from a call to the constructor SIUnits.SIUnit{0,0,-1,0,0,0,0,0,0}(...),
since type constructors fall back to convert methods.
inpromote_op(::Base.#.*, ::Type{Int64}, ::Type{SIUnits.SIUnit{0,0,-1,0,0,0,0,0,0}}) at ./number.jl:73in.*(::Array{Int64,1}, ::SIUnits.SIUnit{0,0,-1,0,0,0,0,0,0}) at ./arraymath.jl:78in*(::Array{Int64,1}, ::SIUnits.SIUnit{0,0,-1,0,0,0,0,0,0}) at ./abstractarraymath.jl:55ineval(::Module, ::Any) at ./boot.jl:234inmacro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46
julia>versioninfo()
Julia Version 0.5.0-dev+5440
Commit edb112a* (2016-07-1421:40 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU:Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
WORD_SIZE:64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
The text was updated successfully, but these errors were encountered:
If you need this to work before there is a fix of the issue in base you can define the following before trying to call anything like collect(1:5) * Hz for the first time
Seems that something has changed with the way values are promoted during array/scalar multiplication:
The text was updated successfully, but these errors were encountered: