Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-37814: Add check for strip footprints in measurement catalogs #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
11 changes: 9 additions & 2 deletions tests/test_validate_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ def test_healsparse_property_maps(self):
self._num_bands
)

def check_strip_footprints(self, catalog):
"""Test that heavy footprints were stripped from the catalog."""
children = catalog[catalog['parent'] != 0]
for child in children:
self.assertEqual(child.getFootprint(), None)

def test_coadd_detection(self):
"""Test existence of coadd detection catalogs."""
n_output = self._num_patches*self._num_bands
Expand All @@ -276,7 +282,8 @@ def test_coadd_detection(self):
["deepCoadd_det",
"deepCoadd_meas"],
n_output,
self._min_sources
self._min_sources,
additional_checks=[self.check_strip_footprints]
)

self.check_sources(
Expand Down Expand Up @@ -397,7 +404,7 @@ def test_forced_phot_coadd(self):
["deepCoadd_forced_src"],
n_output,
self._min_sources,
additional_checks=[self.check_aperture_corrections]
additional_checks=[self.check_aperture_corrections, self.check_strip_footprints]
)

def test_forced_phot_diffim(self):
Expand Down