Skip to main content

Pitzer model for chemical activities in aqueous solutions

Project description

Pytzer

Tests Coverage pypi badge Docs License: GPL v3 Code style: black

Pytzer is a Python implementation of the Pitzer model for chemical activities in aqueous solutions [P91] plus solvers to determine the equilibrium state of the system.

Installation

Due to its dependency on JAX, Pytzer can only be installed on Unix systems, although it does work on Windows via WSL.

For general use

Install with pip:

pip install pytzer

Note that you should also install the dependencies (especially NumPy) using pip, not conda, for best performance. This happens automatically with the above command if the dependencies are not already installed.

Once installed, you will need to set the environment variable JAX_ENABLE_X64=True. For example, using conda:

conda env config vars set JAX_ENABLE_X64=True

For development

Use the environment.yml file to create a new environment with Conda:

conda env create -f environment.yml

Then, fork and/or clone this repo to somewhere that your Python can see it.

Documentation

A work in progress at pytzer.readthedocs.io/en/jax/.

Citation

Pytzer is maintained by Dr Matthew P. Humphreys at the NIOZ Royal Netherlands Institute for Sea Research (Texel, the Netherlands).

For now, the appropriate citation is:

Humphreys, Matthew P. and Schiller, Abigail J. (2021). Pytzer: the Pitzer model for chemical activities and equilibria in aqueous solutions in Python (beta). Zenodo. doi:10.5281/zenodo.2637914.

Please report which version of Pytzer you are using. You can find this in Python with:

import pytzer as pz
pz.hello()

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

Pytzer-0.5.0.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

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

Pytzer-0.5.0-py3-none-any.whl (99.7 kB view details)

Uploaded Python 3

File details

Details for the file Pytzer-0.5.0.tar.gz.

File metadata

  • Download URL: Pytzer-0.5.0.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for Pytzer-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b80418bf88a51b0870f3bf3bbaf70f8671e1f14d5db8a9a3f51e1e2eb3936b9b
MD5 f460e422da8f92ce8498b56fa5fc7aac
BLAKE2b-256 ef1021b8af4b0c1e7b757316d007bf4c065966b674f3715d3a996912e483c788

See more details on using hashes here.

File details

Details for the file Pytzer-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: Pytzer-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 99.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for Pytzer-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e76ba86cf68f4787556753715a113bd4b036261590bee361532ec040949d185
MD5 14fe30515a0627a012c58e1f7e270d5b
BLAKE2b-256 8e4fb4b311b4f70d7f79339eef15c245268f6d73afdf236935b7a3d3f256a9cd

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