Skip to content

Commit

Permalink
Refactor by EB/LSK following review
Browse files Browse the repository at this point in the history
  • Loading branch information
leeskelvin committed Sep 14, 2023
1 parent 249cca4 commit 6bde88f
Show file tree
Hide file tree
Showing 3 changed files with 605 additions and 486 deletions.
7 changes: 4 additions & 3 deletions python/lsst/pipe/tasks/extended_psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,10 @@ class StackBrightStarsTask(Task):

def _set_up_stacking(self, example_stamp):
"""Configure stacking statistic and control from config fields."""
stats_control = StatisticsControl()
stats_control.setNumSigmaClip(self.config.num_sigma_clip)
stats_control.setNumIter(self.config.num_iter)
stats_control = StatisticsControl(
numSigmaClip=self.config.num_sigma_clip,
numIter=self.config.num_iter,
)
if bad_masks := self.config.bad_mask_planes:
and_mask = example_stamp.mask.getPlaneBitMask(bad_masks[0])
for bm in bad_masks[1:]:
Expand Down
Loading

0 comments on commit 6bde88f

Please sign in to comment.