You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider to add a thin abstraction layer around pint to make it easier to replace it later with another unit package. It could be a new module called tripper.mappings.units. This module could define two classes
UnitRegistry - wrapper around pint.UnitRegistry
Quantity - wrapper around pint.Quantity
As suggested by @sygout, an additional benefit with this is that it would allow for not calling pint if the source and destination units are the same.
The text was updated successfully, but these errors were encountered:
Consider to add a thin abstraction layer around pint to make it easier to replace it later with another unit package. It could be a new module called
tripper.mappings.units
. This module could define two classesAs suggested by @sygout, an additional benefit with this is that it would allow for not calling pint if the source and destination units are the same.
The text was updated successfully, but these errors were encountered: