Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 21, 2023
1 parent 569355a commit 5fe024b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions romancal/source_detection/source_detection_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5fe024b

Please sign in to comment.