Hi Karim,
Yes, OpenCOR (through a third-party library that it uses to handle CellML files) can tell you whether a model's units are consistent. However, for this, you need to:
-
switch to the Raw CellML view (on the right hand side of the editor);
-
right click on the editor and click on the CellML Validation menu item.
If you changed the unit of alpha_y from per_millisec to
dimensionless then you should see the following two messages:
[Warning] [32:18] MathML equals element has inconsistent units between the sides.
[Warning] [41:22] Expected all arguments to operator "minus" to have the same units.
I agree, those messages are not super useful, but they at least highlight an issue with units. I also agree that it would be much better if this check could be done from the
CellML Text view, but... yeah, that's the way it is unfortunately (there are some technical limitations unfortunately).
Otherwise, although the model is clearly not sound anymore (when it comes to units), CellML allows a model to have inconsistent units. This is to make a model developer's life easier when developing a model otherwise it could very quickly become very tedious
(talking from experience here). Still, needless to say that you should always ensure that units are consistent before publishing a model!
HTH, Alan.