Skip to content

Commit

Permalink
Bug fix: masking non exposure area in RL algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyoneda committed Jul 10, 2024
1 parent 7b5715c commit 170c618
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosipy/image_deconvolution/RichardsonLucy.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def Mstep(self):
# delta model
sum_T_product = self.calc_summed_T_product(ratio_list)
self.delta_model = self.model * (sum_T_product/self.summed_exposure_map - 1)

if self.mask is not None:
self.delta_model = self.delta_model.mask_pixels(self.mask)

# background normalization optimization
if self.do_bkg_norm_optimization:
Expand Down

0 comments on commit 170c618

Please sign in to comment.