Commit 4d9d9fa2 authored by chad.hanna's avatar chad.hanna

inspiral_pipe: convert infinities to something that follows the T050017...

inspiral_pipe: convert infinities to something that follows the T050017 spec... FIXME this is not ideal...
parent 102ba34c
......@@ -374,7 +374,11 @@ def T050017_filename(instruments, description, seg, extension, path = None):
instruments = "".join(sorted(instruments))
start, end = seg
start = int(math.floor(start))
duration = int(math.ceil(end)) - start
try:
duration = int(math.ceil(end)) - start
# FIXME this is not a good way of handling this...
except OverflowError:
duration = 2000000000
extension = extension.strip('.')
if path is not None:
return '%s/%s-%s-%d-%d.%s' % (path, instruments, description, start, duration, extension)
......
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