Skip to main content

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


Download files

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

Source Distribution

diffstarpop-0.0.2.tar.gz (6.7 MB view details)

Uploaded Source

File details

Details for the file diffstarpop-0.0.2.tar.gz.

File metadata

  • Download URL: diffstarpop-0.0.2.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

Hashes for diffstarpop-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7cafeacf7cda3202c616c9bc625e678ac94ad784f25863d289abea2c8ebedfa2
MD5 74ee8eb10f8ecfe5b6d6477f16610ed8
BLAKE2b-256 801599d7d96cc1f46a49d68244a9ee6e538332155238f67304314fddca89091d

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