From ec7021abb89dcf6d876de2aaa5fc602971aff522 Mon Sep 17 00:00:00 2001 From: Hal Simpson <hasimpson@usgs.gov> Date: Mon, 8 Jun 2015 14:56:12 -0600 Subject: [PATCH] Added seek(0) so streamed can be used a second time. --- geomagio/iaga2002/StreamIAGA2002Factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geomagio/iaga2002/StreamIAGA2002Factory.py b/geomagio/iaga2002/StreamIAGA2002Factory.py index a3599703f..7a2df4bba 100644 --- a/geomagio/iaga2002/StreamIAGA2002Factory.py +++ b/geomagio/iaga2002/StreamIAGA2002Factory.py @@ -30,6 +30,8 @@ class StreamIAGA2002Factory(IAGA2002Factory): Notes: Calls IAGA2002Factory.parse_string in place of IAGA2002Factory.get_timeseries. """ + + self._stream.seek(0) return IAGA2002Factory.parse_string(self, self._stream.read()) def put_timeseries(self, timeseries, starttime=None, endtime=None, -- GitLab