Skip to content

Commit

Permalink
- convert units to str
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed May 19, 2022
1 parent 0be140b commit 298d0fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions basico/model_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3473,19 +3473,19 @@ def set_model_unit(**kwargs):
model.setTimeUnit(kwargs['time_unit'])

if 'substance_unit' in kwargs:
model.setQuantityUnit(kwargs['substance_unit'])
model.setQuantityUnit(str(kwargs['substance_unit']))

if 'quantity_unit' in kwargs:
model.setQuantityUnit(kwargs['quantity_unit'])
model.setQuantityUnit(str(kwargs['quantity_unit']))

if 'length_unit' in kwargs:
model.setLengthUnit(kwargs['length_unit'])
model.setLengthUnit(str(kwargs['length_unit']))

if 'area_unit' in kwargs:
model.setAreaUnit(kwargs['area_unit'])
model.setAreaUnit(str(kwargs['area_unit']))

if 'volume_unit' in kwargs:
model.setVolumeUnit(kwargs['volume_unit'])
model.setVolumeUnit(str(kwargs['volume_unit']))

model.updateInitialValues(COPASI.CCore.Framework_Concentration)

Expand Down

0 comments on commit 298d0fe

Please sign in to comment.