Open kerimoyle opened 4 years ago
This is something that @hsorby quickly discussed last week after he came across an issue with OpenCOR (well, the CellML API).
The validation as it stands is correct, i.e. it validates a model against the CellML specifications. So, there is nothing wrong with your CellML code. However, when it comes to code generation, we need to make sure that the CellML code corresponds to a runnable model. In your example, this is not the case and I would expect libCellML's generator to return an error message telling you that much.
In summary, there are two levels of "validation" for me:
In order to generate code, we need both levels of "validation" to pass.
Related to #459 ... I can now generate (wahoo!) garbage code (bummer!) ... see:
The CellML (which passes validator and generator checks):
Happily creates these output files:
Archive.zip
Either we need to change the spec to say that MathML must be dimensionally consistent (in which case we can then check in the Validator) or the Generator needs to check this... thoughts?