From e69b5da8ca8fc6bc5bc654ac3c54990528227899 Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Thu, 4 Dec 2014 11:34:30 -0700
Subject: [PATCH] Remove type, interval paramters from parse_url, trace stats

---
 src/python/geomag/io/iaga2002/IAGA2002Factory.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/python/geomag/io/iaga2002/IAGA2002Factory.py b/src/python/geomag/io/iaga2002/IAGA2002Factory.py
index d6e82c5b..8d529a15 100644
--- a/src/python/geomag/io/iaga2002/IAGA2002Factory.py
+++ b/src/python/geomag/io/iaga2002/IAGA2002Factory.py
@@ -95,14 +95,14 @@ class IAGA2002Factory(TimeseriesFactory):
         timeseries = obspy.core.Stream()
         for day in days:
             url = self._get_url(observatory, day, type, interval)
-            timeseries += self._parse_url(url, type, interval)
+            timeseries += self._parse_url(url)
         # merge channel traces for multiple days
         timeseries.merge()
         # trim to requested start/end time
         timeseries.trim(starttime, endtime)
         return timeseries
 
-    def _parse_url(self, url, type, interval):
+    def _parse_url(self, url):
         """Parse the contents of a url to an IAGA2002 file.
 
         Parameters
@@ -135,8 +135,6 @@ class IAGA2002Factory(TimeseriesFactory):
             stats.network = 'IAGA'
             stats.station = station
             stats.channel = channel
-            stats.type = type
-            stats.interval = interval
             stream += obspy.core.Trace(data[channel], stats)
         return stream
 
-- 
GitLab