Skip to content

logunit doesn’t support Quantity{<:LogScaled} #784

@sostock

Description

@sostock

To me, it seems like this should work:

julia> u = u"dB/s"
dB s^-1

julia> unit(u)
s^-1

julia> unit(1u)
s^-1

julia> logunit(u)
dB

julia> logunit(1u)
ERROR: MethodError: no method matching logunit(::Quantity{Gain{Unitful.LogInfo{:Decibel, 10, 10}, :?, Int64}, 𝐓^-1, Unitful.FreeUnits{(s^-1,), 𝐓^-1, nothing}})
The function `logunit` exists, but no method is defined for this combination of argument types.
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    logarithmiclogarithmic scales (decibels, nepers, …)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions