Skip to content
Snippets Groups Projects
Commit 72ffa7a7 authored by Sophie Hourihane's avatar Sophie Hourihane
Browse files

segment lengths calculated from cache files reguardless of skip-datafind in bayeswave-pipe

parent 03c95efc
No related branches found
No related tags found
No related merge requests found
......@@ -709,18 +709,10 @@ for ifo in ifo_list:
ldfcmd_file.writelines(ldfcmd+'\n\n')
os.chmod(datafindscript, 0o755)
# Record frame segments so we can identify frames for osg_deploy transfers
if opts.skip_datafind:
# XXX: if no datafind, assume frames include jobs. But should
# change to take cache file locations
frameSegs[ifo] = \
segments.segmentlist([segments.segment(gps_start_time,
gps_end_time)])
else:
frameSegs[ifo] = utils.fromlalcache(open(cache_files[ifo]))
if not frameSegs[ifo]:
raise ValueError("No frame data found with: {}".format(ldfcmd))
# get segment length of data from cache files
frameSegs[ifo] = utils.fromlalcache(open(cache_files[ifo]))
if not frameSegs[ifo]:
raise ValueError("No frame data found with: {}".format(ldfcmd))
if skip_segment_queries:
segmentList[ifo] = \
......
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