BioSTEAMDevelopmentGroup / thermosteam

BioSTEAM's Premier Thermodynamic Engine
Other
57 stars 12 forks source link

units_of_measure importing error due to pint verion #80

Closed yalinli2 closed 1 year ago

yalinli2 commented 1 year ago

Hi @yoelcortes , just an FYI, a recent release of pint moved modules around and now you'll get an importing error for this line https://github.com/BioSTEAMDevelopmentGroup/thermosteam/blob/8165979b9636ef77af0829ebd39b091a94f1c83f/thermosteam/units_of_measure.py#L22

now to_units_container is in the util module, but I can't think of a better way than try and except or restricting pint version in setup, thanks!

yalinli2 commented 1 year ago

btw, it might have been renamed to Pint...

yoelcortes commented 1 year ago

Thanks for letting me know! It should be fixed now. I am also avoiding any private methods from pint.

yalinli2 commented 1 year ago

wonderful and thanks!