Skip to content

Adding unit conversion for code generation #77

@skeating

Description

@skeating

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions