Commit ebadbcd1 authored by Ievgen Vovk's avatar Ievgen Vovk
Browse files

Handling of empty event lists in MarsRun._find_mono_events() .

parent fe5c9c78
Pipeline #68143 failed with stage
in 9 minutes and 14 seconds
......@@ -1071,10 +1071,12 @@ class MarsRun:
# shortcut if only single file is loaded:
if n_m1_events == 0:
mono_ids['M2'] = np.arange(0,n_m2_events)[m2_data_condition]
if n_m2_events > 0:
mono_ids['M2'] = np.arange(0, n_m2_events)[m2_data_condition]
return mono_ids
if n_m2_events == 0:
mono_ids['M1'] = np.arange(0,n_m1_events)[m1_data_condition]
if n_m1_events > 0:
mono_ids['M1'] = np.arange(0, n_m1_events)[m1_data_condition]
return mono_ids
for m1_id in range(0, n_m1_events):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment