- Pinned Pint version to be > 0.9 and < 0.20 since 0.20 has changed the location and number of arguments of the ScaleConverter and UnitDefinition classes
- Fixed a bug in the parser where equations in a piecewise containing a boolean caused parsing errors.
see https://github.com/ModellingWebLab/cellmlmanip/issues/350
- Added an error for duplicate unit definitions.
- Added error message when trying to connect components that do not exist.
- Added an error for duplicate component names.
- Fixed errors dealing with dimensionless units which have a multiplier or exponent, and added an error for offset units (where the offset is not 0) as those are not supported.
see https://github.com/ModellingWebLab/cellmlmanip/issues/351
- Improved error reporting: When a unit is defined inside a component and used it now throws a ValueError indicating units in components are not supported. Previously a confusing KeyError was thrown, which suggested the unit was not found.
- Added a better error message for inequalities <, >, <=, >= when one or both sides are a boolean. Added a warning for == and != when one side is a boolean, but not the other.
- Added better error messages for booleans appaearing in derivatives and derivative equations.