JuliaPhysics / JuliaPhysics/Unitful.jl

dBW missing, attempts to define it fail.

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

Description

In RF, we use dBW sometimes and not just dBm. Attempting to define it fails as follows:

julia> @logscale dBW "dBW" dBW 30u"dBm" 10 false
ERROR: invalid redefinition of constant dBW

I also tried the following and got an even weirder message:

julia> @unit dBW "dBW" dBW 30u"dBm" false
ERROR: DimensionError: mW² and 1000.0 mW are not dimensionally compatible.

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.