@@ -298,18 +298,18 @@ struct System <: IntermediateDeprecationSystem
298298 check_equations (equations (continuous_events), iv)
299299 check_subsystems (systems)
300300 end
301- # if checks == true || (checks & CheckUnits) > 0
302- # u = __get_unit_type(unknowns, ps, iv)
303- # if noise_eqs === nothing
304- # check_units(u, eqs)
305- # else
306- # check_units(u, eqs, noise_eqs)
307- # end
308- # if iv !== nothing
309- # check_units(u, jumps, iv)
310- # end
311- # isempty(constraints) || check_units(u, constraints)
312- # end
301+ if checks == true || (checks & CheckUnits) > 0
302+ u = __get_unit_type (unknowns, ps, iv)
303+ if noise_eqs === nothing
304+ check_units (u, eqs)
305+ else
306+ check_units (u, eqs, noise_eqs)
307+ end
308+ if iv != = nothing
309+ check_units (u, jumps, iv)
310+ end
311+ isempty (constraints) || check_units (u, constraints)
312+ end
313313 new (tag, eqs, noise_eqs, jumps, constraints, costs,
314314 consolidate, unknowns, ps, brownians, iv,
315315 observed, parameter_dependencies, var_to_name, name, description, defaults,
0 commit comments