Library for differentiable generation of star formation histories
Project description
DiffstarPop is a python library based on JAX for generating statistical realizations of the diffstar model in simulation-based forward modeling applications.
Installation
DiffstarPop is currently a private repo that must be installed from source:
$ cd /path/to/root/diffstarpop $ pip install .
Environment configuration
The following step is not required, but we recommend you
Testing
To run the suite of unit tests:
$ cd /path/to/root/diffstarpop $ pytest
To build html of test coverage:
$ pytest -v --cov --cov-report html $ open htmlcov/index.html
Some of the unit tests require that the DIFFSTARPOP_DRN environment variable is set. The reason for this is because the data stored in this directory are too large to include in the repo and so tests that rely on these data must be run locally. To create the DIFFSTARPOP_DRN environment variable with the directory where the dataset is stored on your disk, add the following line to your .bash_profile (for bash users) or .zshrc (for zshell users):
export DIFFSTARPOP_DRN="/path/to/drn/containing/diffstarpop/data"
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
File details
Details for the file diffstarpop-0.0.1.tar.gz.
File metadata
- Download URL: diffstarpop-0.0.1.tar.gz
- Upload date:
- Size: 6.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6fb00a8d77f18c332a546a43a1cd639287bdb2a9ec5e0243a4976b3de3d4603
|
|
| MD5 |
50e6b915b3b2e23181934fc32896d854
|
|
| BLAKE2b-256 |
3a55e0143775ac25dc6b3a58b0a27f0540ba7fafb30ea09af27b39ec0b0bdd2c
|