From 5fe024b8be81f24f2a13660182920520156ace11 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Mar 2023 03:47:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- romancal/source_detection/source_detection_step.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/romancal/source_detection/source_detection_step.py b/romancal/source_detection/source_detection_step.py index 12966848a..26de824ae 100644 --- a/romancal/source_detection/source_detection_step.py +++ b/romancal/source_detection/source_detection_step.py @@ -77,12 +77,11 @@ def process(self, input): self.data = input_model.data # mask DO_NOT_USE pixels - + self.coverage_mask = ( (dqflags.pixel["DO_NOT_USE"]) & input_model.dq ).astype(bool) - # if a pre-determined threshold value for detection for the whole # image is provided, use this if self.scalar_threshold is not None: @@ -118,8 +117,7 @@ def process(self, input): elif self.calc_threshold is not None: # subtrack background from data if calculating abs. threshold - sources = daofind(self.data - bkg.background, - mask=self.coverage_mask) + sources = daofind(self.data - bkg.background, mask=self.coverage_mask) # reduce table to minimal number of columns, just source ID, # positions, and fluxes