Skip to content

Commit ba61676

Browse files
committed
improve comments regarding units
1 parent 6f47e51 commit ba61676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reactionsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,8 @@ end
15471547
# Checks if a unit consist of exponents with base 1 (and is this unitless).
15481548
unitless_exp(u) = iscall(u) && (operation(u) == ^) && (arguments(u)[1] == 1)
15491549

1550-
# Checks if a symbolic variable is unitless. Also accounts for callable parameters (which
1551-
# should not have units but for which `get_unit` is undefined: https://github.com/SciML/ModelingToolkit.jl/issues/3420).
1550+
# Checks if a symbolic variable is unitless. Also accounts for callable parameters (for
1551+
# which `get_unit`'s` intended behaviour (or whether it should generate an error) is undefined: https://github.com/SciML/ModelingToolkit.jl/issues/3420).
15521552
function unitless_symvar(sym)
15531553
return (sym isa Symbolics.CallWithMetadata) || (ModelingToolkit.get_unit(sym) == 1)
15541554
end

0 commit comments

Comments
 (0)