Commit 39093415 authored by Richard O'Shaughnessy's avatar Richard O'Shaughnessy

util_LALWriteFrame.py: Adding options to prevent failure with too short data sets

parent fc3283f3
......@@ -72,6 +72,8 @@ P.print_params()
T_est = lalsimutils.estimateWaveformDuration(P)
T_est = P.deltaT*lalsimutils.nextPow2(T_est/P.deltaT)
if T_est < opts.seglen:
T_est =opts.seglen
P.deltaF = 1./T_est
print " Duration ", T_est
if T_est < opts.seglen:
......
Markdown is supported
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