lsst / cell_coadds

LSST Data Management: Data Structures defining the cell-based coadds
GNU General Public License v3.0
2 stars 0 forks source link
astronomy data-structures python

########### cell_coadds ###########

|build| |coverage|

.. |build| image:: https://github.com/lsst/cell_coadds/actions/workflows/test.yaml/badge.svg?branch=main :target: https://github.com/lsst/cell_coadds/actions/workflows/test.yaml

.. |coverage| image:: https://codecov.io/github/lsst/cell_coadds/branch/main/graph/badge.svg :target: https://codecov.io/github/lsst/cell_coadds

cell_coadds is a package in the LSST Science Pipelines <https://pipelines.lsst.io>_.

It includes the data structures for defining coadds of astronomical images in small (few arcsecond) cells, in which only input images that fully contain a cell are included. This helps mitigate problems with PSF discontinuities that are present in traditional coadds.

To import this package, setup the package in your environment and then run:

.. code-block:: python

>>> import lsst.cell_coadds

Development workflow

This package currently relies extensively on GitHub Actions for CI, which test it against the stackvana <https://anaconda.org/conda-forge/stackvana>_ conda-forge distribution of the latest weekly release of the LSST Science Pipelines.

Development uses a number of tools that are not in broad use in the LSST codebase (and enforces their use in CI); in some respects this package can be considered a pilot program for using them more broadly, but in the meantime the CI checks that utilize these tools require some special care for developers unfamiliar with them. They include:

The best way to use all of these tools is via editor integrations, which should be possible for all major editors (refer to our developer guide <https://developer.lsst.io/editors/> for editor configurations). All necessary configuration files for these tools are included in the repository (pyproject.toml, mypy.ini etc.), and these configurations should be allowed to take precedence over any others to ensure the CI checks that use those configurations are satisfied. Additionally, you may install a pre-commit <https://pre-commit.com/#installation> hook to ensure that the staged changes are in accordance with these conventions.

.. code-block:: sh

$ pip install pre-commit
$ pre-commit install

Because the CI on Github Actions can take a long time, auto-merge is enabled for this repository. As an extra safeguard, an approval is required before merging unlike other LSST repositories. since it is common for reviewers to approve PRs after suggesting minor changes, the auto-merge option must be used only after the reviewer's comments are addressed.