-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Labels
logarithmiclogarithmic scales (decibels, nepers, …)logarithmic scales (decibels, nepers, …)rangesranges (StepRange, StepRangeLen) of quantitiesranges (StepRange, StepRangeLen) of quantities
Description
Hi,
Multiplying a range by a Gain loses the Gain units:
(5u"dB"/u"cm") .* (1:10)
# (5:5:50) cm^-1Works fine with normal arrays:
(5u"dB"/u"cm") .* collect(1:10)
# 10-element Vector{Quantity{Gain{Unitful.LogInfo{:Decibel, 10, 10}, :?, Int64}, 𝐋^-1, Unitful.FreeUnits{(cm^-1,), 𝐋^-1, nothing}}}:
# [5 dB] cm^-1
# [10 dB] cm^-1
# [15 dB] cm^-1
# [20 dB] cm^-1
# [25 dB] cm^-1
# [30 dB] cm^-1
# [35 dB] cm^-1
# [40 dB] cm^-1
# [45 dB] cm^-1
# [50 dB] cm^-1Thanks
Metadata
Metadata
Assignees
Labels
logarithmiclogarithmic scales (decibels, nepers, …)logarithmic scales (decibels, nepers, …)rangesranges (StepRange, StepRangeLen) of quantitiesranges (StepRange, StepRangeLen) of quantities