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"
Metadata
Release files for diffstarpop 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diffstarpop-0.0.2.tar.gz | 6.7 MB | Details |
Release files / diffstarpop-0.0.2.tar.gz
| Download URL | diffstarpop-0.0.2.tar.gz |
|---|---|
| Size | 6.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cafeacf7cda3202c616c9bc625e678ac94ad784f25863d289abea2c8ebedfa2
|
|
BLAKE2b-256 checksum How to use checksums |
801599d7d96cc1f46a49d68244a9ee6e538332155238f67304314fddca89091d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|