Git Product home page Git Product logo

Comments (2)

CalebBell avatar CalebBell commented on June 2, 2024

Hello Andreu,

Thank you for reporting a bug. The bug you're observing is due to a single set of values which were being used to convert viscosity in degrees Barbey to other viscosity units. The UnivariateSpline method requires the x-values to be continuously increasing or it could not perform an interpolation. For only Barbey out of 47 viscosity scales supported, the scale is an inverse and so the degrees Barbey decreased while viscosity increased. In previous versions of SciPy the error would only be raised if an interpolation was tried, not on creation, and I never tried a conversion with Barbey as I was developing the converter. I have added custom handling for it.

After fixing that, there is also the removal of SciPy's C2K and friends I had to fix. This project cannot make use of the new convert_temperature method introduced in SciPy 0.18 as it supports older versions of SciPy. I have vendorized those functions in a new release of fluids.core, increasing the version of fluids that is required to use thermo to 0.1.68; its upgrade will be automatically installed when thermo is upgraded.

Note this release includes some big changes (which should not be user-facing) in the identifiers.py file, to lazy-load portions of the chemical database for faster startup and reduced memory use. Please report any breaks from previous behavior this may have introduced; I was not planning on a new release right now but I'd rather get a release out to fix this issue anyway.
The new thermo version is in PyPi, 0.1.38. Please close this bug if you can confirm thermo is working with SciPy 1.0.

Sincerely,
Caleb

from thermo.

andreubernadserra avatar andreubernadserra commented on June 2, 2024

Dear Caleb,

In the first place I would like to thank you for both your fast answer and the quality of it. Your library has been a game changing for me in terms of thermodynamic calculations.

Regarding the bug, your patch fixed the issue with Scipy 1.0.0. If I come across more bugs I'll do my best to report them.

Thank you again,
Andreu

from thermo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.