Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 25.1.0
rev: 25.9.0
hooks:
- id: black
language_version: python3.12
language_version: python3.13
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.6
rev: v0.14.1
hooks:
- id: ruff
- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 7.0.0
hooks:
- id: isort
name: isort (python)
Expand Down
1 change: 1 addition & 0 deletions doc/changes/DM-52724.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
StitchedCoadd objects have a new `set_cell_edges` method to mark the cell boundaries with a mask bit.
1 change: 1 addition & 0 deletions doc/changes/DM-52724.bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Save the mask bit definitions in a new MASKDEF binary table.
1 change: 1 addition & 0 deletions doc/changes/DM-52724.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cell-based coadds are no longer assumed to be edge-free. Coadds with edges are fully supported.
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ ignore_errors = True
[mypy-astropy.io]
ignore_missing_imports = True

[mypy-astropy.table]
ignore_missing_imports = True

# Check all of cell_coadds...

[mypy-lsst.cell_coadds.*]
Expand Down
11 changes: 8 additions & 3 deletions python/lsst/cell_coadds/_common_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@

import enum
from abc import ABC, abstractmethod
from dataclasses import dataclass
from collections.abc import Mapping
from dataclasses import dataclass, field
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from lsst.afw.geom import SkyWcs # pragma: no cover
from lsst.afw.geom import Polygon2D, SkyWcs # pragma: no cover

from ._identifiers import PatchIdentifiers # pragma: no cover
from ._identifiers import ObservationIdentifiers, PatchIdentifiers # pragma: no cover


class CoaddUnits(enum.Enum):
Expand Down Expand Up @@ -84,6 +85,10 @@ class CommonComponents:
identifiers: PatchIdentifiers
"""Struct of unique identifiers for this coadd's patch."""

visit_polygons: Mapping[ObservationIdentifiers, Polygon2D] = field(default_factory=dict)
"""Mapping each (visit, detector) observation to a polygon within the
patch bounding box."""


class CommonComponentsProperties(ABC):
"""A mix-in class that provides properties for all common components to
Expand Down
Loading
Loading