From fdacebc3452263ae5f999314f599c088e4f7dbfa Mon Sep 17 00:00:00 2001 From: Kyle H Date: Fri, 28 Feb 2020 15:26:52 -0500 Subject: [PATCH] Allow user to pass keyword arguments to TDSCatalog object that are passed into session_manager. --- siphon/catalog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/siphon/catalog.py b/siphon/catalog.py index b4b1039d7..ed0236777 100644 --- a/siphon/catalog.py +++ b/siphon/catalog.py @@ -265,7 +265,7 @@ class TDSCatalog(object): """ - def __init__(self, catalog_url): + def __init__(self, catalog_url, **kwargs): """ Initialize the TDSCatalog object. @@ -276,9 +276,10 @@ def __init__(self, catalog_url): """ self.session = session_manager.create_session() + session_manager.set_session_options(**kwargs) # get catalog.xml file - resp = self.session.get(catalog_url) + resp = self.session.get(catalog_url, **kwargs) resp.raise_for_status() # top level server url