Open ssfrr opened 8 years ago
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
Base.promote_op{T<:Number,m,kg,s,A,K,mol,cd,rad,sr}(op, ::Type{SIUnits.SIUnit{m,kg,s,A,K,mol,cd,rad,sr}}, ::Type{T}) =
SIUnits.SIQuantity{T,m,kg,s,A,K,mol,cd,rad,sr}
Base.promote_op{T<:Number,m,kg,s,A,K,mol,cd,rad,sr}(op, ::Type{T}, ::Type{SIUnits.SIUnit{m,kg,s,A,K,mol,cd,rad,sr}}) =
SIUnits.SIQuantity{T,m,kg,s,A,K,mol,cd,rad,sr}
Seems that something has changed with the way values are promoted during array/scalar multiplication: