Migration of code for pint < 0.20 to newer version #2097
-
Hi, I'm trying to migrate some code that worked only on
This is intialization-level code, after which there is code for unit conversion, which I believe will not be a problem. The code above fails with recent pint, because it cannot find Could someone give advice on how to update this code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
it looks like you got this working in the linked PR, is this still needed? |
Beta Was this translation helpful? Give feedback.
UnitDefinition and ScaleConverter are now in pint.facets.plain after the parser was split into its own module, flexparser
I think they arent documented with examples as its not expected users will need to use them