Skip to content

Commit

Permalink
Merge pull request #110 from lsst/tickets/DM-40322
Browse files Browse the repository at this point in the history
DM-40322: Implement new connections hook for refcat lookups.
  • Loading branch information
TallJimbo committed Aug 8, 2023
2 parents cee6e8c + ab2a956 commit 98cecbd
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 ("visitSummary",)


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 ("visitSummary",)


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 ("fgcmPhotoCalib",)


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

0 comments on commit 98cecbd

Please sign in to comment.