JuliaPhysics / JuliaPhysics/Unitful.jl

`logunit` doesn’t support `Quantity{<:LogScaled}`

Open
#784 0 comments 0 reactions 0 assignees View on GitHub
logarithmic
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

To me, it seems like this should work:
```julia
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.
[…]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.