Thermodynamic extrapolation
Project description
thermoextrap: Thermodynamic Extrapolation/Interpolation Library
This repository contains code used and described in references [^fn1] [^fn2].
[^fn2]: Leveraging Uncertainty Estimates and Derivative Information in Gaussian Process Regression for Expedited Data Collection in Molecular Simulations. In preparation.
Overview
If you find this code useful in producing published works, please provide an appropriate citation. Note that the second citation is focused on adding features that make use of GPR models based on derivative information produced by the core code base. For now, the GPR code, along with more information, may be found here. In a future release, we expect this to be fully integrated into the code base rather than a standalone module.
Code included here can be used to perform thermodynamic extrapolation and interpolation of observables calculated from molecular simulations. This allows for more efficient use of simulation data for calculating how observables change with simulation conditions, including temperature, density, pressure, chemical potential, or force field parameters. Users are highly encourage to work through the Jupyter Notebooks presenting examples for a variety of different observable functional forms. We only guarantee that this code is functional for the test cases we present here or for which it has previously been applied Additionally, the code may be in continuous development at any time. Use at your own risk and always check to make sure the produced results make sense. If bugs are found, please report them. If specific features would be helpful just let us know and we will be happy to work with you to come up with a solution.
Features
- Fast calculation of derivatives
Status
This package is actively used by the author. Please feel free to create a pull request for wanted features and suggestions!
Installation
Use one of the following to install thermoextrap:
conda install -c conda-forge thermoextrap
or
pip install thermoextrap
Additional dependencies
To utilize the full potential of thermoextrap, additional dependencies are
needed. This can be done via pip by using:
pip install thermoextrap[all]
If using conda, then you'll have to manually install some dependencies. For example, you can run:
conda install bottleneck dask "pymbar>=4.0"
At this time, it is recommended to install the Gaussian Process Regression (GPR) dependencies via pip, as the conda-forge recipes are slightly out of date:
pip install tensorflow tensorflow-probability "gpflow>=2.6.0"
Building cmomy library
thermoextrap makes extensive use of the cmomy library. If using
thermoextrapin parallel, you should either first compile cached numba code
with
python -m cmomy.compile
Or run your command with the environment variable CMOMY_NUMBA_CACHE set to
false
CMOMY_NUMBA_CACHE=false python ....
Installing from source
The repo is setup to use uv to create a development environment. Use the following:
uv sync
This environment will include all additional dependencies mentioned above.
Alternatively, you can install the (locked) development dependencies using:
uv export --group dev > requirements-dev.txt
uv pip install -r requirements/lock/dev.txt
It is not recommended to install the development dependencies with conda.
Example usage
import thermoextrap
Documentation
See the documentation for a look at thermoextrap in action.
To have a look at using thermoextrap with Gaussian process regression, look in
the gpr and
gpr_active_learning directories.
What's new?
See changelog.
License
This is free software. See LICENSE.
Related work
This package extensively uses the cmomy package to handle central comoments.
Contact
Questions may be addressed to Bill Krekelberg at william.krekelberg@nist.gov or Jacob Monroe at jacob.monroe@uark.edu.
Credits
This package was created using Cookiecutter with the usnistgov/cookiecutter-nist-python template.
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 thermoextrap-1.1.1.tar.gz.
File metadata
- Download URL: thermoextrap-1.1.1.tar.gz
- Upload date:
- Size: 434.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e835f0e78915d51a1b3fb1bebce4e4be979b7c02ac9cb52b98d68746b296966
|
|
| MD5 |
240bb53c85792f50cb4cffdd52f9f838
|
|
| BLAKE2b-256 |
2442b7abd42ad6e88ce82b9be265145529483680cfa33d0e12a0f4ee284bbef0
|
Provenance
The following attestation bundles were made for thermoextrap-1.1.1.tar.gz:
Publisher:
cd.yml on usnistgov/thermoextrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thermoextrap-1.1.1.tar.gz -
Subject digest:
7e835f0e78915d51a1b3fb1bebce4e4be979b7c02ac9cb52b98d68746b296966 - Sigstore transparency entry: 1440032898
- Sigstore integration time:
-
Permalink:
usnistgov/thermoextrap@11410f6082d45d0d1af966de09e255b67ab4ffa5 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/usnistgov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@11410f6082d45d0d1af966de09e255b67ab4ffa5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file thermoextrap-1.1.1-py3-none-any.whl.
File metadata
- Download URL: thermoextrap-1.1.1-py3-none-any.whl
- Upload date:
- Size: 121.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f1581850142d8012a498ed286f20e9f59e633a6f46cf31a82138dbf20e6c970
|
|
| MD5 |
ed883262371f237b3b882f3342903d5e
|
|
| BLAKE2b-256 |
078249ef0d29d44dbebd17a225c9d91d516b6dec7c7672ca48142c18c66e768c
|
Provenance
The following attestation bundles were made for thermoextrap-1.1.1-py3-none-any.whl:
Publisher:
cd.yml on usnistgov/thermoextrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thermoextrap-1.1.1-py3-none-any.whl -
Subject digest:
4f1581850142d8012a498ed286f20e9f59e633a6f46cf31a82138dbf20e6c970 - Sigstore transparency entry: 1440032910
- Sigstore integration time:
-
Permalink:
usnistgov/thermoextrap@11410f6082d45d0d1af966de09e255b67ab4ffa5 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/usnistgov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@11410f6082d45d0d1af966de09e255b67ab4ffa5 -
Trigger Event:
release
-
Statement type: