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

base.py: make sure frame cache is sorted in GPS time order when read in

parent 1c321070
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