Support wrapping `ValuesBounded`
Description
Supersedes !69 (closed)
-
Decision is made about whether we need to support wrapping this class at all. I think the answer is that we do, but maybe there is a way we can avoid this by doing something else. -
If we decide that we need to wrap this class, we should be able to do the following: -
create a ValuesBoundedclass in Python using Pint quantities only -
have the units and magnitudes appear correctly on the Fortran side -
error is raised if ValuesBounded.valuesandValuesBounded.value_last_boundcan't be converted to the same unit -
the valuesandvalue_last_boundattributes are exposed in Python as Pint quantities -
the units attribute setter is not exposed in Python (doesn't make sense on the Python side)
-
Checklist
Please confirm that this pull request has done the following:
-
Tests added -
Documentation added (where applicable) -
Changelog item added to changelog/
Closes #41 (closed)
Edited by Zebedee Nicholls