Skip to main content

lsstdesc-diffsky

lsstdesc-diffsky is a python library based on JAX for producing mock catalogs tailored to LSST DESC science requirements.

Installation

The latest release of lsstdesc-diffsky is available for installation with pip. To do so, we recommend starting from a base environment of jax managed by conda-forge:

$ conda create -c conda-forge -n diffsky_env python=3.9 numpy jax pytest ipython jupyter matplotlib scipy h5py
$ conda activate diffsky_env

To install the latest release:

$ pip install lsstdesc-diffsky

To install the current tip of the main branch, you will need to clone and install the source code:

$ cd /path/to/root/lsstdesc-diffsky
$ pip install .

Documentation

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

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

Available Catalogs

A mock catalalog is available at NERSC and is called roman_rubin_2023_v1.1.0.

Working at NERSC

If you want to use the desc-python environment at NERSC, you will need to add lsstdesc-diffsky and its dependencies yourself. 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 lsstdesc-diffsky and its dependencies. Note that the appropriate version of the diffsky codes can vary with the mock being used.

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 from a notebook running at NERSC and perform some basic operations.

Metadata

Release files for lsstdesc-diffsky 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lsstdesc-diffsky 1.1.1
File Size Uploaded
lsstdesc_diffsky-1.1.1.tar.gz 451.5 kB Details

Release files / lsstdesc_diffsky-1.1.1.tar.gz

Download URL lsstdesc_diffsky-1.1.1.tar.gz
Size 451.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1ed6dcd155ee66be800d1ef1acf4312f755621b32fad0c8c70c0970df3e7c1f
BLAKE2b-256 checksum
How to use checksums
df5449fcf9933b36e428af81c64bf098bc5b7731b8a027c25fb08723d651ad1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.1.1 This release

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page