Skip to content

Commit

Permalink
Update photutils and use coverage_mask instead of mask
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Feb 3, 2025
1 parent 0de214e commit 2ec1401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panoptes/utils/images/bayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def save_rgb_bg_fits(rgb_bg_data, output_filename, header=None, fpack=True, over
"""

# Get combined data for Primary HDU
combined_bg = np.array([np.ma.array(data=d.background, mask=d.mask).filled(0)
combined_bg = np.array([np.ma.array(data=d.background, mask=d.coverage_mask).filled(0)
for d in rgb_bg_data]).sum(0)

header = header or fits.Header()
Expand Down

0 comments on commit 2ec1401

Please sign in to comment.