Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Labels:None
-
Story Points:8
-
Epic Link:
-
Sprint:DRP F17-2
-
Team:Data Release Production
Description
Ticket named " 'Psf' object has no attribute 'resized'" as filed.
ModelPsfMatchTask calls Psf.resized, but that method is only defined for certain specialised Psf classes (SingleGaussianPsf and DoubleGaussianPsf). It should have a default implementation, and be defined for CoaddPsf.
> python modelPsfMatchTask.py --template 'data/SDSSJ0920+0034/calexp-HSC-I-9564-7,3.fits' --science 'data/SDSSJ0920+0034/calexp-HSC-R-9564-7,3.fits'
|
|
psfMatch INFO: compute Psf-matching kernel
|
psfMatch INFO: Adjusting dimensions of reference PSF model from (43, 43) to (41, 41)
|
Traceback (most recent call last):
|
File "modelPsfMatchTask.py", line 160, in <module>
|
run(args)
|
File "modelPsfMatchTask.py", line 130, in run
|
result = psfMatchTask.run(templateExp, scienceExp)
|
File "modelPsfMatchTask.py", line 45, in run
|
return ModelPsfMatchTask.run(self, scienceExp, templateExp.getPsf())
|
File "/Users/aisun/anaconda/envs/lsst/opt/lsst/pipe_base/python/lsst/pipe/base/timer.py", line 121, in wrapper
|
res = func(self, *args, **keyArgs)
|
File "/Users/aisun/anaconda/envs/lsst/opt/lsst/ip_diffim/python/lsst/ip/diffim/modelPsfMatch.py", line 274, in run
|
result = self._buildCellSet(exposure, referencePsfModel)
|
File "/Users/aisun/anaconda/envs/lsst/opt/lsst/ip_diffim/python/lsst/ip/diffim/modelPsfMatch.py", line 388, in _buildCellSet
|
referencePsfModel = referencePsfModel.resized(lenPsfScience, lenPsfScience)
|
File "/Users/aisun/anaconda/envs/lsst/opt/lsst/afw/python/lsst/afw/detection/detectionLib.py", line 3745, in <lambda>
|
__getattr__ = lambda self, name: _swig_getattr(self, Psf, name)
|
File "/Users/aisun/anaconda/envs/lsst/opt/lsst/afw/python/lsst/afw/detection/detectionLib.py", line 89, in _swig_getattr
|
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
|
AttributeError: 'Psf' object has no attribute 'resized'
|
Bug reported by Ai-Lei Sun.
Attachments
Issue Links
- duplicates
-
DM-8490 Add resized method to all PSFs and enable psf-matching any type to any type PSF
- Won't Fix
Duplicate of an issue we decided not to do because the assumption that ModelPsfMatchTask only needs to match to models. ImagePsfMatchTask handles the general case.
My question is: why isn't she using imagePsfMatchTask.py?