Skip to content

Commit

Permalink
Merge branch 'tickets/DM-32030'
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Oct 5, 2021
2 parents 314fa6d + 0b61087 commit ba51fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/jointcal/jointcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,7 @@ def _extract_detector_catalog_from_visit_catalog(self, table, visitCatalog, dete
Detector-level catalog extracted from ``visitCatalog``.
"""
# map from dataFrame column to afw table column
mapping = {'sourceId': 'id',
'x': 'centroid_x',
mapping = {'x': 'centroid_x',
'y': 'centroid_y',
'xErr': 'centroid_xErr',
'yErr': 'centroid_yErr',
Expand All @@ -840,6 +839,7 @@ def _extract_detector_catalog_from_visit_catalog(self, table, visitCatalog, dete
matched = visitCatalog[detectorColumn] == detectorId
catalog.resize(sum(matched))
view = visitCatalog.loc[matched]
catalog['id'] = view.index
for dfCol, afwCol in mapping.items():
catalog[afwCol] = view[dfCol]

Expand Down

0 comments on commit ba51fcc

Please sign in to comment.