gafusion / omas

Ordered Multidimensional Array Structure
http://gafusion.github.io/omas
MIT License
30 stars 14 forks source link

fix(pint>=0.20) use pint.Quantity for isintance check instead of pint.quantity._Quantity #265

Closed hassec closed 10 months ago

hassec commented 10 months ago

Fixes #263

This should even be backwards compatible because in older pint versions pint.Quantity is just pointing to pint.quantity._Quantity.

I tested make test_physics with pint==0.19 and pint==0.22 and the tests passed in both cases.

orso82 commented 10 months ago

Fantastic! Thanks!

@hassec do you use the pint functionality in OMAS? https://github.com/gafusion/omas/discussions/264