Skip to content

Commit

Permalink
Merge pull request #55 from duncanmmacleod/llhoft-cache-fix
Browse files Browse the repository at this point in the history
Fixed two bugs in using llhoft frames at CIT
  • Loading branch information
Duncan Macleod committed Jun 7, 2017
2 parents 5eb7b2b + 9ee338b commit 6dead78
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 6dead78

Please sign in to comment.