Skip to content

checkConsistencyWithStrictUnits reports Units issues as Errors not Warnings #385

@matthiaskoenig

Description

@matthiaskoenig

Hi all,
this is related to:
#378

I switched from checkConsistency to checkConsistencyWithStrictUnits and now get a lot of errors instead of warnings.
My understanding is that the function is just performing some additional more strict rules for unit validation to handle numerical conversion factors based on the documentation:

"Performs consistency checking and validation on this SBML document using the ultra strict units validator that assumes that there are no hidden numerical conversion factors."

But in addition the function reports units consistency issues as "error" not as "warning". This is incorrect. Despite the more strict checking the unit consistency issues are still warnings and the model is valid!
The unit consistency issues have to be reported as warnings, so that checkConsistency to checkConsistencyWithStrictUnits behave in the same way (with just additional tests in the strict version) and the validation result is in line with "units being annotations but not making the model invalid".

Best Matthias

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions