diff --git a/biosimulators_tellurium/core.py b/biosimulators_tellurium/core.py index 1526124..d9b0e25 100644 --- a/biosimulators_tellurium/core.py +++ b/biosimulators_tellurium/core.py @@ -427,7 +427,7 @@ def preprocess_sed_task(task, variables, config=None, simulator_config=None): att = param_props['id'] if "roadrunner_attribute" in param_props: att = param_props['roadrunner_attribute'] - setattr(solver, att, new_value) + setattr(solver, att, new_value) else: if ( diff --git a/biosimulators_tellurium/data_model.py b/biosimulators_tellurium/data_model.py index 9018194..61094d8 100644 --- a/biosimulators_tellurium/data_model.py +++ b/biosimulators_tellurium/data_model.py @@ -56,6 +56,7 @@ class PlottingEngine(str, enum.Enum): 'KISAO_0000571': { 'kisao_id': 'KISAO_0000571', 'id': 'absolute_tolerance_adjustment_factor', + 'roadrunner_attribute': 'absolute_tolerance', 'name': 'absolute tolerance adjustment factor', 'type': ValueType.float, 'default': 1e-12, diff --git a/tests/test_core_main.py b/tests/test_core_main.py index bbb1f77..1c44adb 100644 --- a/tests/test_core_main.py +++ b/tests/test_core_main.py @@ -522,9 +522,9 @@ def test_exec_sed_task_with_preprocesssed_task(self): variable_results, log = core.exec_sed_task(task, variables, preprocessed_task=preprocessed_task) with self.assertRaises(AssertionError): numpy.testing.assert_allclose(variable_results['C'][-1], end_c) - mid_c = preprocessed_task.road_runner['C'] - mid_m = preprocessed_task.road_runner['M'] - mid_x = preprocessed_task.road_runner['X'] + mid_c = preprocessed_task.road_runner[task.id]['C'] + mid_m = preprocessed_task.road_runner[task.id]['M'] + mid_x = preprocessed_task.road_runner[task.id]['X'] self.assertIsInstance(mid_c, float) variable_results, log = core.exec_sed_task(task, variables, preprocessed_task=preprocessed_task)