Unit issue with delta degrees
When using degrees as part of expressions in the ELN schemas, they are automatically interpreted as "delta" version (without the offset) by pint. The GUI unit library does not have these units defined, because it instead has internal logic that dynamically determines whether to use ignore the offest or not. This causes GUI errors when using these schemas.
The solution for now is to only enable implicitly defined delta-units in both the python metainfo and in the GUI. Both Pint
and MathJS
have this functionality, but only Pint
has a separate internal representation for the delta-variants, MathJS
only uses some extra logic when it sees non-multiplicative units in some expression context. If we later have a real need for explicitly defined delta-units, we will have to augment MathJS
to support them and add their definitions to unitData.json
.