Skip to content

Commit

Permalink
TO RESET
Browse files Browse the repository at this point in the history
  • Loading branch information
hsinfang committed Nov 5, 2024
1 parent ec3c8b4 commit 280557a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_middleware_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,3 +1335,15 @@ def test_export_outputs(self):
self.assertEqual(
self._count_datasets(central_butler, ["raw", "calexp"], f"{instname}/defaults"),
0)

def test_compute_region(self):
"""Test preload region computation."""
region = self.interface._compute_region()
self.assertTrue(isinstance(region, lsst.sphgeom.Region))
results = self.interface.butler.query_dimension_records("visit_detector_region", instrument=instname, group="1")

Check failure on line 1343 in tests/test_middleware_interface.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E501

line too long (120 > 110 characters)
visit_detector_region = list(results)[0].region
self.assertTrue(isinstance(visit_detector_region, lsst.sphgeom.Region))

#self.assertTrue(region.contains(visit_detector_region))

Check failure on line 1347 in tests/test_middleware_interface.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E265

block comment should start with '# '
#self.assertTrue(visit_detector_region.contains(region))

Check failure on line 1348 in tests/test_middleware_interface.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

E265

block comment should start with '# '
self.assertTrue(visit_detector_region.intersects(region))

0 comments on commit 280557a

Please sign in to comment.