From 298d0fe0734d191b1006a047ac8df433e0ec6b67 Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Thu, 19 May 2022 15:48:26 +0200 Subject: [PATCH] - convert units to str --- basico/model_info.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/basico/model_info.py b/basico/model_info.py index 396a648..5b034db 100644 --- a/basico/model_info.py +++ b/basico/model_info.py @@ -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)