Skip to main content

Library for differentiable generation of synthetic skies for LSST DESC

Project description

Code for producing mock catalogs tailored to LSST DESC requirements.

Installation

The latest release of diffsky is available for installation with pip or conda:

$ conda install lsstdesc-diffsky

To install lsstdesc_diffsky into your environment from the source code:

$ cd /path/to/root/lsstdesc_diffsky
$ pip install .

Conda environment

For a typical development environment in conda:

$ conda create -n diffstuff python=3.9 numpy jax pytest ipython jupyter matplotlib scipy h5py diffmah diffstar dsps diffsky lsstdesc-diffsky

Testing

To run the suite of unit tests:

$ cd /path/to/root/lsstdesc_diffsky
$ pytest

To build html of test coverage:

$ pytest -v --cov --cov-report html
$ open htmlcov/index.html

Documentation

Online documentation for lsstdesc-diffsky is available at lsstdesc-diffsky.readthedocs.io

Available Catalogs

A prototype catalalog is available at NERSC and is called skysim_v3.1.0

Until lsstdesc-diffsky is part of the desc-python standard environment, you will need to add the package and its dependencies to desc-python. The directions for cloning and adding packages to the environment can be found here Once you have built the basic environment, you will need to activate it and install the DSPS and the lsstdesc-diffsky packages as described above. If you wish to use the code in a jupyter notebook, you will also need to install a python kernel as follows:

$ python -m ipykernel install --user --name=my_kernel_name

demo_load_catalog is a demo notebook showing how to load the catalog and perform some basic operations.

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

lsstdesc_diffsky-0.1.0.tar.gz (348.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page