Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Oct 2, 2024
1 parent 30ab284 commit 5164dfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jwst/outlier_detection/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def median_without_resampling(input_models,

drizzled_model = input_models.borrow(i)
drizzled_data = drizzled_model.data.copy()
drizzled_err = drizzled_model.err.copy()
weight = build_driz_weight(drizzled_model,
weight_type=weight_type,
good_bits=good_bits)
Expand All @@ -97,7 +98,9 @@ def median_without_resampling(input_models,

weight_threshold = compute_weight_threshold(weight, maskpt)
drizzled_data[weight < weight_threshold] = np.nan
drizzled_err[weight < weight_threshold] = np.nan
computer.append(drizzled_data, i)
err_computer.append(drizzled_err, i)

input_models.shelve(drizzled_model, i, modify=False)

Expand Down

0 comments on commit 5164dfd

Please sign in to comment.