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 3cad7b3 commit e826e2eCopy full SHA for e826e2e
src/systems/unit_check.jl
@@ -44,18 +44,7 @@ function __get_unit_type(vs′...)
44
end
45
46
function screen_unit(result)
47
- if result isa DQ.AbstractQuantity
48
- d = DQ.dimension(result)
49
- if d isa DQ.Dimensions
50
- return result
51
- elseif d isa DQ.SymbolicDimensions
52
- return DQ.uexpand(oneunit(result))
53
- else
54
- throw(ValidationError("$result doesn't have a recognized unit"))
55
- end
56
57
- throw(ValidationError("$result doesn't have any unit."))
58
+ throw(ValidationError("$result doesn't have any unit."))
59
60
61
const unitless = DQ.Quantity(1.0)
0 commit comments