My app is unable to compare pint Quantities because they are based on different registries.
I believe thermosteam is not following the latest guidance (that I found) in pint on avoiding multiple unit registries, which is for libraries to call pint.get_application_registry(), allowing the app to establish a registry used by all libraries, ensuring that Quantities are commensurable.
Instead, thermosteam creates its own by calling ureg = UnitRegistry().
@rjplevin, thanks for posting the issue. It should be fixed now. It also seems like pint has also made many enhancements and added new units like bushels (which I had to add before).
My app is unable to compare pint Quantities because they are based on different registries.
I believe thermosteam is not following the latest guidance (that I found) in pint on avoiding multiple unit registries, which is for libraries to call
pint.get_application_registry()
, allowing the app to establish a registry used by all libraries, ensuring that Quantities are commensurable.Instead, thermosteam creates its own by calling
ureg = UnitRegistry()
.