Skip to content

Commit

Permalink
Remove the raw subset test
Browse files Browse the repository at this point in the history
It won't work for lsst data which has separate amps and whether
it works or not is dependent on the raw formatter in use.
Easier to remove the test for now.
  • Loading branch information
timj committed May 31, 2022
1 parent 07d70d9 commit e6dad37
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions python/lsst/obs/base/butler_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,6 @@ def test_raw_header_wcs(self):
wcs = self.butler.get("raw_header_wcs", self.dataIds["raw"])
self.assertEqual(wcs, self.butler_get_data.raw_header_wcs)

@unittest.skip("Cannot test this. Raw data can not reliably have bbox requested.")
def test_raw_sub_bbox(self):
# Gen2 variant only. Gen3 will never support this.
self._require_gen2()
exp = self.butler.get("raw", self.dataIds["raw"], immediate=True)
bbox = exp.getBBox()
bbox.grow(-1)
sub = self.butler.get("raw_sub", self.dataIds["raw"], bbox=bbox, immediate=True)
self.assertEqual(sub.getImage().getBBox(), bbox)
self.assertImagesEqual(sub, exp.Factory(exp, bbox))

def test_subset_raw(self):
for kwargs, expect in self.butler_get_data.raw_subsets:
if self._is_gen3():
Expand Down

0 comments on commit e6dad37

Please sign in to comment.