Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

thermo 0.2.7 Incompatible with Pint 0.17

See original GitHub issue

The 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\", 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\", line 6964, in __init__
    b = float((bs*zs).sum())
  File "C:\Users\User\.virtualenvs\pipeflow-2kmDBsbg\lib\site-packages\pint\", line 833, in __float__
    raise DimensionalityError(self._units, "dimensionless")
pint.errors.DimensionalityError: Cannot convert from 'kelvin / pascal' to 'dimensionless'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

RoryKurekcommented, Jun 24, 2021

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!

RoryKurekcommented, Jun 25, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found