Skip to content
Closed
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: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: 2
updates:
# Each ecosystem batches all its version updates into a single pull request.
# Security updates are not grouped and still open immediately.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
cooldown:
default-days: 7
groups:
monthly-batch:
patterns:
- "*"
2 changes: 1 addition & 1 deletion python/lsst/obs/base/defineVisits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ def compute(
else:
detectorBounds = self.computeExposureBounds(visit.exposures[0], collections=collections)
visitBounds = []
detectorRegions = {}
detectorRegions: dict[int, Region] = {}
for detectorId, bounds in detectorBounds.items():
detectorRegions[detectorId] = ConvexPolygon.convexHull(bounds)
visitBounds.extend(bounds)
Expand Down
4 changes: 3 additions & 1 deletion python/lsst/obs/base/ingest_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ def testDefineVisits(self) -> None:
self.assertEqual(len(detectorVisitDataIds), len(camera))
for dataId in detectorVisitDataIds:
assert isinstance(foundVisit.region, lsst.sphgeom.Region)
self.assertTrue(foundVisit.region.contains(dataId.region))
# Use bare assert for mypy.
assert dataId.region is not None
self.assertTrue(foundVisit.region.contains(dataId.region)) # type: ignore[call-overload]

# Check obscore table again.
self._check_obscore(butler.registry, has_visits=True)
Expand Down
Loading