Code generation needs to be able to convert units. Currently Maurice is doing
factor = model.units.get_conversion_factor(1 * current_units, desired_units)
eq = sp.relational.Equality(eq.lhs, factor * eq.rhs)
which works so long as lhs isnt used elsewhere.
This issue will overlap with parts of other issues e.g. #8, #21 but adding it here to be clear what I'm working on.
Code generation needs to be able to convert units. Currently Maurice is doing
factor = model.units.get_conversion_factor(1 * current_units, desired_units)
eq = sp.relational.Equality(eq.lhs, factor * eq.rhs)
which works so long as lhs isnt used elsewhere.
This issue will overlap with parts of other issues e.g. #8, #21 but adding it here to be clear what I'm working on.