Closed tomaskontrimas closed 8 months ago
Oops, I guess analysis unit tests https://github.com/icecube/i3skyllh/actions/runs/8241075808 fail due to the livetime calculation change before the v24.1.0 release (see the test on master/v24.1.0 https://github.com/icecube/i3skyllh/actions/runs/8241246057/job/22538113710).
Let's fix them first, before merging this fix.
Good catch! Thanks for fixing this.
Apply mask to
events_meta
as we initially draw events from all datasets andsignal_event_post_sampling_processing
expects the same shape ofevents_meta
andevents
arrays.Fixes #219 issue. It does not change the signal injection behaviour when events fall within
valid event field ranges
(e.g. declination range after events rotation). Trials would fail when generating signal for analyses with multi datasets and/or multi source hypothesis groups.It follows the same logic as in the initial signal events drawing in L886-897: https://github.com/icecube/skyllh/blob/f8e4ea6eda5987c0df2445259982e937155e0490/skyllh/core/signal_generator.py#L886-L897