Skip to content

Commit a5d4273

Browse files
committed
Temporary fix: Re-initialize weights as 0 before calculating actual weights
1 parent d2e3a4c commit a5d4273

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ctapipe/io/dl2_tables_preprocessing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ def make_event_weights(
496496
ValueError
497497
If ``fov_offset_bins`` is required but not provided.
498498
"""
499+
# FIXME: Re-initialize weights = 0 to exclude events outside fov bins in
500+
# the cut optimization.
501+
# This should be removed once cuts are also optimized in fov bins.
502+
events["weight"] = 0.0
503+
499504
if (
500505
kind == "gammas"
501506
and self.target_spectrum.normalization.unit.is_equivalent(

0 commit comments

Comments
 (0)