Skip to content

Commit

Permalink
Update to new id-indexed visitSummary catalog.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Mar 3, 2021
1 parent 2abd0ea commit be24423
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/jointcal/jointcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ class JointcalTaskConnections(pipeBase.PipelineTaskConnections,
multiple=True,
)
inputVisitSummary = pipeBase.connectionTypes.Input(
doc="Visit summary tables built from the calexps for these observations.",
doc=("Per-visit consolidated exposure metadata built from calexps. "
"These catalogs use detector id for the id and are sorted for "
"fast lookups of a detector."),
name="visitSummary",
storageClass="ExposureCatalog",
dimensions=("instrument", "visit", "physical_filter"),
Expand Down Expand Up @@ -767,7 +769,7 @@ def _load_data(self, inputSourceTableVisit, inputVisitSummary, associations, joi
selected = self.sourceSelector.run(visitCatalog)

# Build a CcdImage for each detector in this visit.
detectors = {id: index for index, id in enumerate(visitSummary['detector_id'])}
detectors = {id: index for index, id in enumerate(visitSummary['id'])}
for id, index in detectors.items():
catalog = self._extract_detector_catalog_from_visit_catalog(table, selected.sourceCat, id)
data = self._make_one_input_data(visitSummary[index], catalog)
Expand Down

0 comments on commit be24423

Please sign in to comment.