Skip to content

Commit

Permalink
Merge 9ee338b into 5eb7b2b
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Macleod committed Jun 7, 2017
2 parents 5eb7b2b + 9ee338b commit c0ce095
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions omicron/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from glue.lal import (Cache, CacheEntry)
from glue.segments import (segment as Segment, segmentlist as SegmentList)

re_ll = re.compile('\A[A-Z]\d_ll')
re_ll = re.compile('\A[HL]1_ll')
re_gwf_gps_epoch = re.compile('[-\/](?P<gpsepoch>\d+)$')


Expand Down Expand Up @@ -301,4 +301,5 @@ def _find_ll_frames(ifo, frametype, root='/dev/shm'):
obs = ifo[0]
globstr = os.path.join(root, frametype, ifo,
'%s-%s_%s-*-*.gwf' % (obs, ifo, frametype))
return Cache.from_urls(glob.glob(globstr))
# don't return the last file, as it might not have been fully written yet
return Cache.from_urls(sorted(glob.glob(globstr)[:-1]))

0 comments on commit c0ce095

Please sign in to comment.