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
I would like to use Pint to work with quantities of different devices. These devices can have the same or different definitions of units. If they are the same, I would like to allow these registry to work together.
My current workaround is to have a master registry singleton that takes a registry and return an unified registry. The master class knows the used registry and if the input registry is similar another one already in the known registry list, the registry from the database is returned.
a = pint.UnitRegistry()
b = pint.UnitRegistry()
c = Registry(a)
d = Registry(b)
e = c.meters * d.meters
I don't like this workaround. Is there any better solution?
The text was updated successfully, but these errors were encountered:
I would like to use Pint to work with quantities of different devices. These devices can have the same or different definitions of units. If they are the same, I would like to allow these registry to work together.
My current workaround is to have a master registry singleton that takes a registry and return an unified registry. The master class knows the used registry and if the input registry is similar another one already in the known registry list, the registry from the database is returned.
I don't like this workaround. Is there any better solution?
The text was updated successfully, but these errors were encountered: