Skip to content
Snippets Groups Projects
Commit 9b40cb81 authored by ChiWai Chan's avatar ChiWai Chan
Browse files

gstlal_inspiral_calc_snr:

	having --start / --end 650s larger/less than --gps-start-time / --gps-end-time is  probably an overkill. Reducing it to 50s.
parent 670e6251
No related branches found
No related tags found
No related merge requests found
Pipeline #78396 passed with warnings
......@@ -268,9 +268,9 @@ def parse_command_line():
elif options.start >= options.end:
raise ValueError("--start must less than --end.")
# Extra handle for SNRs output because SNRs are not stable initially and have padding at the end
# FIXME: the 650s is hardcoded (~BNS waveforms duration) and only used as a lower bound to avoid having a frame file that is too short
if options.start - gw_data_source_info.seg[0] <= 650 or gw_data_source_info.seg[1] - options.end <= 650:
raise ValueError("Check your inputted --start / --end or your frame file. You should have a long enough data such that, the --start/--end is larger/less than the start/end of your data at least 650s. ")
# FIXME: the 50s is hardcoded and only use to avoid snr being unstable due to edge effect when doing convoluion
if options.start - gw_data_source_info.seg[0] <= 50 or gw_data_source_info.seg[1] - options.end <= 50:
raise ValueError("Check your inputted --start / --end or your frame file. You should have a long enough data such that, the --start/--end is larger/less than the start/end of your data at least 50s. ")
# Setting up PSD
if options.reference_psd:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment