Skip to content

Commit

Permalink
Implement new connections hook for refcat lookups.
Browse files Browse the repository at this point in the history
This is part of a new, slightly-better fix for DM-40243.
  • Loading branch information
TallJimbo committed Aug 6, 2023
1 parent cee6e8c commit 402a410
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/lsst/fgcmcal/fgcmBuildFromIsolatedStars.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def __init__(self, *, config=None):
self.prerequisiteInputs.remove("fgcm_lookup_table")
self.outputs.remove("fgcm_reference_stars")

def getSpatialBoundsConnections(self):
return ("isolated_star_cats", "visit_summaries")


class FgcmBuildFromIsolatedStarsConfig(FgcmBuildStarsConfigBase, pipeBase.PipelineTaskConfig,
pipelineConnections=FgcmBuildFromIsolatedStarsConnections):
Expand Down
3 changes: 3 additions & 0 deletions python/lsst/fgcmcal/fgcmBuildStarsTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def __init__(self, *, config=None):
if not config.doReferenceMatches:
self.outputs.remove("fgcmReferenceStars")

def getSpatialBoundsConnections(self):
return ("visit_summaries",)


class FgcmBuildStarsTableConfig(FgcmBuildStarsConfigBase, pipeBase.PipelineTaskConfig,
pipelineConnections=FgcmBuildStarsTableConnections):
Expand Down
3 changes: 3 additions & 0 deletions python/lsst/fgcmcal/fgcmCalibrateTractTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def __init__(self, *, config=None):
if not config.fgcmOutputProducts.doZeropointOutput:
self.prerequisiteInputs.remove("fgcmZeropoints")

def getSpatialBoundsConnections(self):
return ("isolated_star_cats", "visit_summaries")


class FgcmCalibrateTractTableConfig(FgcmCalibrateTractConfigBase, pipeBase.PipelineTaskConfig,
pipelineConnections=FgcmCalibrateTractTableConnections):
Expand Down
3 changes: 3 additions & 0 deletions python/lsst/fgcmcal/fgcmOutputProducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def __init__(self, *, config=None):
if not config.doReferenceCalibration:
self.outputs.remove("fgcmOffsets")

def getSpatialBoundsConnections(self):
return ("fgcmPhotoCalibCatalog",)


class FgcmOutputProductsConfig(pipeBase.PipelineTaskConfig,
pipelineConnections=FgcmOutputProductsConnections):
Expand Down

0 comments on commit 402a410

Please sign in to comment.