We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb01b6 commit f017472Copy full SHA for f017472
src/sbmlsim/model/model_roadrunner.py
@@ -224,7 +224,10 @@ def set_integrator_settings(
224
if key == "absolute_tolerance":
225
# special hack to acount for amount and concentration absolute
226
# tolerances
227
- value = min(value, value * min(r.model.getCompartmentVolumes()))
+ compartment_values = r.model.getCompartmentVolumes()
228
+ if compartment_values:
229
+ value = min(value, value * min(compartment_values))
230
+
231
integrator.setValue(key, value)
232
logger.debug(f"Integrator setting: '{key} = {value}'")
233
return integrator
0 commit comments