CalebBell / thermo

Thermodynamics and Phase Equilibrium component of Chemical Engineering Design Library (ChEDL)
MIT License
594 stars 114 forks source link

Refactor phases module to subpackage #72

Closed yoelcortes closed 3 years ago

yoelcortes commented 3 years ago

Hi Caleb,

This pull request refactors the phases.py module (well over 10,000 lines) into a subpackage with the following modules:

__init__
air
ceos
combined
coolprop
gibbs_excess
helmholtz_eos
iapws
ideal_gas
petroleum
phase
utils
virial

All tests passed except for some extremely slow marked tests, which I think might have been failing before the change (maybe you'd like to check it out?):

In addition, the pull request introduces some minor edits:

The documentation should be working the same as before since I exposed the documentation of all classes in the __init__ module of the phases subpackage. Not sure if moving the documentation of each class to separate modules is something we would like to do in the future.

Feel free to edit as you see fit before merging, Hope this helps!