Skip to content

Commit

Permalink
Merge pull request #806 from lsst/tickets/DM-39840
Browse files Browse the repository at this point in the history
DM-39840: Deprecate doPsfMatch field in coaddBase
  • Loading branch information
arunkannawadi authored Jun 30, 2023
2 parents 8748632 + 3770491 commit cd77afb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/assembleCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def setDefaults(self):

def validate(self):
super().validate()
if self.doPsfMatch:
if self.doPsfMatch: # TODO: Remove this in DM-39841
# Backwards compatibility.
# Configs do not have loggers
log.warning("Config doPsfMatch deprecated. Setting warpType='psfMatched'")
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/pipe/tasks/coaddBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class CoaddBaseConfig(pexConfig.Config):
)
doPsfMatch = pexConfig.Field(
dtype=bool,
doc="Match to modelPsf? Deprecated. Sets makePsfMatched=True, makeDirect=False",
doc="Match to modelPsf? Sets makePsfMatched=True, makeDirect=False",
deprecated="This field is no longer used. Will be removed after v27.", # TODO: DM-39841
default=False
)
modelPsf = measAlg.GaussianPsfFactory.makeField(doc="Model Psf factory")
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/makeWarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def validate(self):

if not self.makePsfMatched and not self.makeDirect:
raise RuntimeError("At least one of config.makePsfMatched and config.makeDirect must be True")
if self.doPsfMatch:
if self.doPsfMatch: # TODO: Remove this in DM-39841
# Backwards compatibility.
log.warning("Config doPsfMatch deprecated. Setting makePsfMatched=True and makeDirect=False")
self.makePsfMatched = True
Expand Down

0 comments on commit cd77afb

Please sign in to comment.