Skip to content

Commit

Permalink
Add GetDcrTemplateTask
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Mar 25, 2022
1 parent 74a3074 commit af55a3d
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 83 deletions.
6 changes: 4 additions & 2 deletions python/lsst/ip/diffim/dcrModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def fromImage(cls, maskedImage, dcrNumSubfilters, effectiveWavelength, bandwidth
mask=mask, variance=variance, photoCalib=photoCalib)

@classmethod
def fromQuantum(cls, availableCoaddRefs, effectiveWavelength, bandwidth):
def fromQuantum(cls, availableCoaddRefs, effectiveWavelength, bandwidth, numSubfilters):
"""Load an existing DcrModel from a Gen 3 repository.
Parameters
Expand All @@ -130,6 +130,8 @@ def fromQuantum(cls, availableCoaddRefs, effectiveWavelength, bandwidth):
The effective wavelengths of the current filter, in nanometers.
bandwidth : `float`
The bandwidth of the current filter, in nanometers.
numSubfilters : `int`
Number of subfilters in the DcrCoadd.
Returns
-------
Expand All @@ -143,7 +145,7 @@ def fromQuantum(cls, availableCoaddRefs, effectiveWavelength, bandwidth):
mask = None
variance = None
photoCalib = None
modelImages = [None]*len(availableCoaddRefs)
modelImages = [None]*numSubfilters

for coaddRef in availableCoaddRefs:
subfilter = coaddRef.dataId["subfilter"]
Expand Down

0 comments on commit af55a3d

Please sign in to comment.