We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc87dd6 commit 089649eCopy full SHA for 089649e
src/systems/unit_check.jl
@@ -20,7 +20,7 @@ function __get_literal_unit(x)
20
end
21
v = value(x)
22
u = getmetadata(v, VariableUnit, nothing)
23
- u === nothing ? nothing : screen_unit(u)
+ u isa DQ.AbstractQuantity ? screen_unit(u) : u
24
25
function __get_scalar_unit_type(v)
26
u = __get_literal_unit(v)
0 commit comments