A python tool set for equations of state
Project description
PYTHEOS
Overview
Pytheos provides a tool set for a wide range of tasks in high pressure science:
calculate pressure from a number of built-in pressure scales
convert pressure scales
propagate uncertainties properly using the uncertainties package
fit pressure-volume and pressure-volume-temperature data sets using the scipy and lmfit packages
fit with a wide range of different equations and their combinations
Installation
This section describes how to download pytheos from GitHub and install it using conda. The procedure is suitable for macOS and Linux.
Clone the GitHub repository
Clone the repository and enter the source directory:
git clone https://github.com/SHDShim/pytheos.git cd pytheos
Create a dedicated conda environment
Create a clean conda environment to avoid dependency conflicts:
conda create -n pytheos python=3.11 -y conda activate pytheos
Python version 3.9 or newer is recommended.
Install core dependencies
Install numerical and scientific dependencies from conda-forge:
conda install -c conda-forge numpy scipy matplotlib sympy pandas jupyter -y
If you plan to run the example notebooks, also install Jupyter support:
conda install -c conda-forge ipykernel nbconvert -y python -m ipykernel install --user --name pytheos
Install pytheos
From the repository root (where setup.py or pyproject.toml is located), install pytheos:
pip install .
Verify the installation:
python - <<EOF import pytheos print(pytheos.__version__) EOF
Test the installation
Run a simple test to confirm that core functionality works:
python - <<EOF from pytheos import bm3_p, vinet_p print(bm3_p(10.0, 160.0, 4.0, 4.0)) print(vinet_p(10.0, 160.0, 4.0)) EOF
Updating pytheos
To update pytheos to the latest version from GitHub:
cd pytheos git pull origin master pip install .
Clean removal
To completely remove pytheos and its conda environment:
conda deactivate conda remove -n pytheos --all
Contact
Please contact Dan Shim (shdshim@gmail.com) for bug reports, comments, and suggestions. I am happy to include new pressure scales or other pressure scales in pytheos as well.
Examples and Tutorials
The pytheos package includes examples in Jupyter Notebook (under the examples folder), which demonstrate a range of operations, calculations, and fittings you can do with pytheos. Pytheos is designed to support data analysis using Jupyter Notebook as well as python scripts.
Documentation is available at: https://shdshim.github.io/pytheos-docs/.
How to cite
S.-H. Shim (2017) Pytheos - a python tool set for equations of state. Zenodo. http://doi.org/10.5281/zenodo.802392
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytheos-0.0.2.tar.gz.
File metadata
- Download URL: pytheos-0.0.2.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc93881728b0f8f9b4a60efc22f80bb0108466e9841798188531dc69f836b3f
|
|
| MD5 |
a62633d5bbad268068c8bd19c38ad9ba
|
|
| BLAKE2b-256 |
86db11d1d795f31844ed0e74c8ba14e22552a1000f2b8a9b02ee3374aab65bc7
|
File details
Details for the file pytheos-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pytheos-0.0.2-py3-none-any.whl
- Upload date:
- Size: 44.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cee3384c5edcdf17eceffa85920090617aeb27c1a4e5fcbb617cdaad13a99a68
|
|
| MD5 |
389848609541e27f2320ec0fc6bf5bd6
|
|
| BLAKE2b-256 |
0547c9043bca4181261000dd55e68747127f43a8b5f8525fab460467c06773b5
|