Skip to content

Commit

Permalink
Deprecate old cycleNumber in favor of correct connection setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Aug 4, 2022
1 parent 85af353 commit eb0f87d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions python/lsst/fgcmcal/fgcmOutputProducts.py
Expand Up @@ -175,6 +175,8 @@ class FgcmOutputProductsConfig(pipeBase.PipelineTaskConfig,
doc="Final fit cycle from FGCM fit",
dtype=int,
default=None,
deprecated=("This config is no longer used, and will be removed after v25. "
"Please set config.connections.cycleNumber directly instead."),
)
physicalFilterMap = pexConfig.DictField(
doc="Mapping from 'physicalFilter' to band.",
Expand Down Expand Up @@ -281,12 +283,6 @@ def setDefaults(self):
self.photoCal.match.sourceSelection.flags.bad = ['flag_badStar']
self.photoCal.match.sourceSelection.doUnresolved = False

def validate(self):
super().validate()

# Force the connections to conform with cycleNumber
self.connections.cycleNumber = str(self.cycleNumber)


class FgcmOutputProductsTask(pipeBase.PipelineTask):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/config/fgcmOutputProductsHsc.py
Expand Up @@ -4,7 +4,7 @@
import os.path


config.cycleNumber = 2
config.connections.cycleNumber = 2

config.doReferenceCalibration = True

Expand Down

0 comments on commit eb0f87d

Please sign in to comment.