thermo 0.2.7 Incompatible with Pint 0.17
See original GitHub issueThe latest versions of both libraries appear to have some incompatibilities when attempting to use thermo.units. Running the below example from the thermo documentation results in an error. It appears that eos_mix is attempting to do a float() conversion which this version of Pint does not like. Not sure about the best way around this to maintain compatibility for users using Pint and those not using Pint.
Is there a specific version of Pint which is definitely compatible?
eos = PRMIX(**kwargs)
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python39\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "C:\Users\User\.virtualenvs\pipeflow-2kmDBsbg\lib\site-packages\thermo\eos_mix.py", line 6964, in __init__
b = float((bs*zs).sum())
File "C:\Users\User\.virtualenvs\pipeflow-2kmDBsbg\lib\site-packages\pint\quantity.py", line 833, in __float__
raise DimensionalityError(self._units, "dimensionless")
pint.errors.DimensionalityError: Cannot convert from 'kelvin / pascal' to 'dimensionless'
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
EPEL 7 for x86_64 - RPMFind
unsupported · prelude-manager · prewikka · conf.d · primer3_config · interpretations ... pyasn1_modules-0.2.7-py3.6.egg-info · pycmd.
Read more >Software Packages in "jammy", Subsection x11 - Ubuntu
daemon used to register global keyboard shortcuts (appl.) lxqt-notificationd (0.17.0-0ubuntu1) [universe]: LXQt notification daemon; lxqt-openssh-askpass (0.17.
Read more >Debian -- Software Packages in "sid", Subsection x11
... armel, armhf, i386, mips64el, mipsel, ppc64, ppc64el, s390x], 0.2.7-1.1 [alpha, hppa, ... e17 (0.17.6-1.1) [debports]: Enlightenment DR17 Window Manager ...
Read more >Ecofriendly synthesis and characterization of carboxylated ...
These poly(GA-carboxylate) compounds (1–7) have better thermal ... low sensitivity, high energy, and good compatibility with highly ...
Read more >YGFC Fan Coil Units - Johnson Controls
The manufacturing facility has a test lab that allows verification of the thermal capacities given by the software under the specified conditions. Johnson ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure enough, my PRMIX import was incorrect. Sorry about that, I’m still getting used to the library. Thanks for all your hard work on this!
That’s totally fair. I will probably just wrap the library with my own code to handle unit conversions as needed. Again, thanks for all your hard work!