dylanwal / unit_parse

Tool for parsing 'ugly' numbers and units
BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

Adds more details on using `unit_parse` together with `pint`. #2

Closed MerlinDE closed 2 years ago

MerlinDE commented 2 years ago

It took me quite a while to figure out that I have to define Unit and Quantity based on the Pint registry to make it discoverable by unit_parse. I basically only figured it out reading your test cases (test_pint.py). So I thought it might be good to add that hint to your documentation as well.