Closed matthiaskoenig closed 1 month ago
Hi all, thanks for looking into this. Let me know if you need any more information on the issue. Best Matthias
Hi Matthias,
Are you using checkConsistencyWithStrictUnits? This does report an error
Perfect. Thanks. Solves the issue. Did not know about that ;)
Hi all, I have a model were the units in the math of the AssignmentRule do not match the variable. But the unit validation does not raise a UnitError. The model is attached here: dapagliflozin_kidney.zip
The variable is UGE (urinary glucose excretion) with the unit "gram".
And the corresponding assignment rule:
glc_urine [mmole] * Mr_glc [g/mole] = mg != g
, i.e., the variable is in g, but the math of the assignment has the units mg. This should give a UnitError.The same issue happens when not using the factor 1000 in the equation (just but this in so the values are correct) Normally such errors are correctly handled, not sure why this is not the case here. Best Matthias