Skip to content

Commit 0fecf64

Browse files
fix: fix noise equations unit checking
1 parent 89e72f8 commit 0fecf64

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/systems/system.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ struct System <: AbstractSystem
8484
end
8585
if checks == true || (checks & CheckUnits) > 0
8686
u = __get_unit_type(unknowns, ps, iv)
87-
check_units(u, eqs)
88-
noise_eqs !== nothing && check_units(u, noise_eqs)
87+
if noise_eqs === nothing
88+
check_units(u, eqs)
89+
else
90+
check_units(u, eqs, noise_eqs)
91+
end
8992
isempty(constraints) || check_units(u, constraints)
9093
end
9194
new(tag, eqs, noise_eqs, jumps, constraints, costs,

0 commit comments

Comments
 (0)