We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02886f5 commit 118c952Copy full SHA for 118c952
1 file changed
tests/test_coadds.py
@@ -610,6 +610,16 @@ def test_inputs(self):
610
)
611
self.assertEqual(len(self.stitched_coadd.visits), 1)
612
613
+ def test_coaddInputs(self):
614
+ """Test that the inputs are populated when converted to Exposure."""
615
+ inputs = self.stitched_coadd.asExposure().getInfo().getCoaddInputs()
616
+ for position, _ in self.test_positions:
617
+ ccds = inputs.subset_containing_ccds(position, None)
618
+ visits = inputs.subset_containing_visits(position, None)
619
+ with self.subTest(x=position.x, y=position.y):
620
+ self.assertEqual(len(ccds), 1)
621
+ self.assertEqual(len(visits), 1)
622
+
623
def test_borders(self):
624
"""Test that the borders are populated correctly on stitching."""
625
mi = self.stitched_coadd.asMaskedImage()
0 commit comments