Coder Social home page Coder Social logo

j-jith / pythermophy Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 3.0 445 KB

Python module for predicting density, heat capacities and speed of sound of pure fluids using Peng-Robinson, (Soave-)Redlich-Kwong and Lee-Kesler equations of state.

Home Page: https://j-jith.github.io/pythermophy/

License: MIT License

Python 100.00%
thermodynamics equation-of-state python-module

pythermophy's People

Contributors

j-jith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pythermophy's Issues

Incomplete documentation

Documentation is incomplete. List of things to be done:

  • Update README.rst
  • Add comments before each function, class, etc. (preferably numpy style)
  • Generate documentation

fluid.py shows an error

Hi. I hope you find well.

When I try to run an example (after installation) iit shows:

runfile('../prueba_spyder.py', wdir='C:/Users/misab/pythermophy')
Traceback (most recent call last):

File "..\prueba_spyder.py", line 17, in
fluid = pt.Fluid.init_from_file('fluids\CO2.yaml')

File "D:\Apps\Anaconda\lib\site-packages\pythermophy-0.1-py3.8.egg\pythermophy\fluid.py", line 103, in init_from_file
valid = inst.is_valid()

File "D:\Apps\Anaconda\lib\site-packages\pythermophy-0.1-py3.8.egg\pythermophy\fluid.py", line 47, in is_valid
if not isinstance(self.name, basestring):

NameError: name 'basestring' is not defined

Any suggestions? Thank you so much!

Issue with yaml loader

PyYAML has changed the load file function, yaml.load no longer works, yaml.safe_load seems to work. Just needs to be updated in fluid.py. Very helpful package, thanks.

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.