Relative Content

Tag Archive for pythonpint

Pint doesn’t recognize my custom defined units

I’m using Pint to handle units for some files that I’m analyzing.
The files contain 10,000ish lines of data for 10 – 100 different variables each. The units of the variables are given in the files, and some units are not contained in the default units of Pint, e.g. ‘Ohmm’.

Parse temperature string in pint

I was trying to parse a string with a temperature and pint fails due to the non-multiplicative nature of the temperature. However, it seems the internal conversion should handle this: