From 7b3af189ed67e612b443c1a4e4254078b77fa679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6nig?= Date: Tue, 24 Sep 2024 18:18:57 +0200 Subject: [PATCH] bugfix time unit --- src/sbmlutils/resources/converters/odefac_template.md | 2 +- src/sbmlutils/validation.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sbmlutils/resources/converters/odefac_template.md b/src/sbmlutils/resources/converters/odefac_template.md index 6b011b2c..6410f262 100644 --- a/src/sbmlutils/resources/converters/odefac_template.md +++ b/src/sbmlutils/resources/converters/odefac_template.md @@ -32,6 +32,6 @@ length: [{{model_units["length"]}}] # odes {% for id in xids %} -d {{ id }}/dt = {{dx[id]}} # [{{units[id]}}/{{units["time"]}}] {{names[id]}} +d {{ id }}/dt = {{dx[id]}} # [{{units[id]}}/{{model_units["time"]}}] {{names[id]}} {% endfor %} ``` diff --git a/src/sbmlutils/validation.py b/src/sbmlutils/validation.py index 36eaf364..4653518f 100644 --- a/src/sbmlutils/validation.py +++ b/src/sbmlutils/validation.py @@ -316,6 +316,7 @@ def _check_consistency( if internal_consistency: count = doc.checkInternalConsistency() else: + # count = doc.checkConsistency() count = doc.checkConsistencyWithStrictUnits() if count > 0: