Filter normalization with 0 counts also in no footprint mode
Unit Testing / test (3.11) (push) Successful in 1m17s
Unit Testing / test (3.12) (push) Successful in 1m17s
Unit Testing / test (3.8) (push) Successful in 1m17s
Unit Testing / test (3.10) (push) Successful in 1m39s
Unit Testing / test (3.9) (push) Successful in 1m38s

This commit is contained in:
glavic_a committed 2026-10-15 15:12:23 +02:00
1 parent a787b91e92
commit 68e84a82da
1 file changed
+1 -1
+1 -1
View File
@@ -237,7 +237,7 @@ class LZProjection(ProjectionInterface):
def normalize_no_footprint(self, norm: LZNormalisation):
norm_lz = norm.norm
ref_lz = (self.data.I/norm_lz)
ref_lz = (self.data.I/np.where(norm_lz>0, norm_lz, np.nan))
ref_lz *= norm.monitor/self.monitor
ref_lz[np.logical_not(self.data.mask)] = np.nan
self.data.norm = norm_lz