Skip to content

Commit

Permalink
Modernize MakeKernel init
Browse files Browse the repository at this point in the history
Use super()
Remove unnecessary self.kConfig: this is already done in the parent
class.
  • Loading branch information
parejkoj committed Jan 31, 2025
1 parent 758f279 commit 1163504
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/lsst/ip/diffim/makeKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ class MakeKernelTask(PsfMatchTask):
_DefaultName = "makeALKernel"

def __init__(self, *args, **kwargs):
PsfMatchTask.__init__(self, *args, **kwargs)
self.kConfig = self.config.kernel.active
super().__init__(*args, **kwargs)
# the background subtraction task uses a config from an unusual location,
# so cannot easily be constructed with makeSubtask
self.background = SubtractBackgroundTask(config=self.kConfig.afwBackgroundConfig, name="background",
Expand Down

0 comments on commit 1163504

Please sign in to comment.