Skip to content

Commit

Permalink
Don't expect VisitSensorRegions to preexist in gen2convert.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Aug 11, 2018
1 parent a4e1013 commit 062c6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/gen2convert/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def insertObservationRegions(self, registry, datastore):
bbox.grow(config["padding"])
region = ConvexPolygon([sp.getVector() for sp in wcs.pixelToSky(bbox.getCorners())])
value = {k: row[k] for k in ("camera", "visit", "sensor")}
registry.setDataUnitRegion(("Visit", "Sensor"), value, region)
registry.setDataUnitRegion(("Visit", "Sensor"), value, region, update=False)
visits.setdefault((row["camera"], row["visit"]), []).extend(region.getVertices())
for (camera, visit), vertices in visits.items():
region = ConvexPolygon(vertices)
Expand Down

0 comments on commit 062c6ee

Please sign in to comment.