Two options for user defined duration for the null set
If a user wants to use a fixed duration for glitches in the case that durations of glitches obtained from an ETG is too small, e.g., cWB triggers.
- For the target set
- only the target samples with glitch type have modified duration which is set to be the user-defined duration.
- It could be trouble for the non-overlapping target samples, e.g., cwb or omicron triggers because all the triggers have the same label.
- However, it does not matter for the extended BG mode.
- For the null set
- As of writing this git issue, all the glitches durations will be modified with the user-defined durations.
-
This is ok for cWB triggers because the duration of each of the triggers is small enough -
This is NOT ok for omicron because some of the glitches would have longer duratoin than the user-defined duration.
So
- If duration of each trigger is less than the user-defined duration, make all the duration to be the user-defined duration, e.g., for cwb triggers
- Otherwise, e.g., omicron triggers, change for only the target samples.
Look at FindBGlis_extendBG() in burn_in_utilities.py and FindBGlist() in utilities.py The following line of codes should be applied to df_target
if UserDefinedDuration > 0: # accept a user defined duration # assign this user defined duration for any types of glieches observed in a given IFO df_int.loc[(df_int['ifo'] == IFO), ['duration']] = UserDefinedDuration # df_int.loc[(df_int['ifo'] == IFO) & (df_int['label'] == 'null'), ['duration']] = UserDefinedDuration else: # otherwise, keep the duration that are determined by an event trigger generator (ETG) pass