To get a number in the units of a specific variable, I now need to do:
model.get_equation_graph()
v = model.get_symbol_by_ontology_term(OXMETA, 'membrane_voltage')
v_meta = model.get_meta_dummy(v)
unit = v_meta.units
number = model.add_number(sp.Number(-80), str(unit))
might make more sense if I could use the unit directly? Or would that add some unforseen complication?
To get a number in the units of a specific variable, I now need to do:
might make more sense if I could use the
unitdirectly? Or would that add some unforseen complication?