Skip to main content

A python tool set for equations of state

Project description

PYTHEOS

DOI

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.

  1. Clone the GitHub repository

Clone the repository and enter the source directory:

git clone https://github.com/SHDShim/pytheos.git
cd pytheos
  1. 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.

  1. 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
  1. 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
  1. 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
  1. Updating pytheos

To update pytheos to the latest version from GitHub:

cd pytheos
git pull origin master
pip install .
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytheos-0.0.2.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytheos-0.0.2-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

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

Hashes for pytheos-0.0.2.tar.gz
Algorithm Hash digest
SHA256 edc93881728b0f8f9b4a60efc22f80bb0108466e9841798188531dc69f836b3f
MD5 a62633d5bbad268068c8bd19c38ad9ba
BLAKE2b-256 86db11d1d795f31844ed0e74c8ba14e22552a1000f2b8a9b02ee3374aab65bc7

See more details on using hashes here.

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

Hashes for pytheos-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cee3384c5edcdf17eceffa85920090617aeb27c1a4e5fcbb617cdaad13a99a68
MD5 389848609541e27f2320ec0fc6bf5bd6
BLAKE2b-256 0547c9043bca4181261000dd55e68747127f43a8b5f8525fab460467c06773b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page