Skip to content
Snippets Groups Projects
Commit ec7021ab authored by Hal Simpson's avatar Hal Simpson
Browse files

Added seek(0) so streamed can be used a second time.

parent fd55e855
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ class StreamIAGA2002Factory(IAGA2002Factory): ...@@ -30,6 +30,8 @@ class StreamIAGA2002Factory(IAGA2002Factory):
Notes: Calls IAGA2002Factory.parse_string in place of Notes: Calls IAGA2002Factory.parse_string in place of
IAGA2002Factory.get_timeseries. IAGA2002Factory.get_timeseries.
""" """
self._stream.seek(0)
return IAGA2002Factory.parse_string(self, self._stream.read()) return IAGA2002Factory.parse_string(self, self._stream.read())
def put_timeseries(self, timeseries, starttime=None, endtime=None, def put_timeseries(self, timeseries, starttime=None, endtime=None,
......
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