Skip to content
Snippets Groups Projects
Commit bf514eb8 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

Merge branch '119-make-sure-frame-cache-files-are-sorted-by-gps-time' into 'master'

Resolve "Make sure frame cache files are sorted by GPS time"

Closes #119

See merge request !162
parents 1c321070 530b3edb
No related branches found
No related tags found
No related merge requests found
...@@ -772,6 +772,13 @@ class Heterodyne(object): ...@@ -772,6 +772,13 @@ class Heterodyne(object):
raise IOError( raise IOError(
"Frame cache file '{}' could not be read".format(framecache) "Frame cache file '{}' could not be read".format(framecache)
) )
# make sure the cache files are sorted in GPS time order
cache = [
c[1]
for c in sorted(zip([frame_information(fr)[2] for fr in cache], cache))
]
try: try:
# TimeSeries.read can't read from multiple files, so read individually # TimeSeries.read can't read from multiple files, so read individually
data = TimeSeriesDict() data = TimeSeriesDict()
......
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