From 81f0bc726aba66c5718690e96b78a8d59afa2dcd Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Fri, 20 Nov 2015 15:56:45 -0700 Subject: [PATCH] Add defaults to Edge, Iaga factories --- geomagio/edge/EdgeFactory.py | 2 +- geomagio/iaga2002/IAGA2002Factory.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geomagio/edge/EdgeFactory.py b/geomagio/edge/EdgeFactory.py index 89536cbd2..7b92a33ea 100644 --- a/geomagio/edge/EdgeFactory.py +++ b/geomagio/edge/EdgeFactory.py @@ -72,7 +72,7 @@ class EdgeFactory(TimeseriesFactory): for reading. """ - def __init__(self, host=None, port=None, write_port=None, + def __init__(self, host='cwbpub.cr.usgs.gov', port=2060, write_port=None, observatory=None, channels=None, type=None, interval=None, observatoryMetadata=None, locationCode=None, cwbhost=None, cwbport=0, tag='GeomagAlg', forceout=False): diff --git a/geomagio/iaga2002/IAGA2002Factory.py b/geomagio/iaga2002/IAGA2002Factory.py index 9abb5faf2..37ce68313 100644 --- a/geomagio/iaga2002/IAGA2002Factory.py +++ b/geomagio/iaga2002/IAGA2002Factory.py @@ -33,8 +33,8 @@ class IAGA2002Factory(TimeseriesFactory): IAGA2002Parser """ - def __init__(self, urlTemplate, observatory=None, channels=None, type=None, - interval=None): + def __init__(self, urlTemplate=None, observatory=None, channels=None, + type=None, interval=None): TimeseriesFactory.__init__(self, observatory, channels, type, interval, urlTemplate) -- GitLab