Skip to content

Commit

Permalink
Apply mask to events_meta as we initially draw events from all data…
Browse files Browse the repository at this point in the history
…sets and `signal_event_post_sampling_processing` expects same shape `events_meta` and `events` arrays.

It follows the same logic as in the initial signal events drawing in L886-897.
  • Loading branch information
tomaskontrimas committed Mar 11, 2024
1 parent 633a234 commit f8e4ea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skyllh/core/signal_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ def _draw_valid_sig_events_for_dataset_and_shg(
)
m = (events_meta['ds_idx'] == ds_idx) &\
(events_meta['shg_idx'] == shg_idx)
events = mc[events_meta['ev_idx'][m]]
events_meta = events_meta[m]
events = mc[events_meta['ev_idx']]
if len(events) > 0:
events = shg.sig_gen_method.\
signal_event_post_sampling_processing(
Expand Down

0 comments on commit f8e4ea6

Please sign in to comment.