diff --git a/mslib/utils/netCDF4tools.py b/mslib/utils/netCDF4tools.py index 1e19eae6f..49092cb40 100644 --- a/mslib/utils/netCDF4tools.py +++ b/mslib/utils/netCDF4tools.py @@ -237,12 +237,14 @@ def __init__(self, files, exclude=None, skip_dim_check=None, """ # Open the master file in the base class, so that the CDFMF instance # can be used like a CDF instance. - exclude = exclude or [] skip_dim_check = skip_dim_check or [] if isinstance(files, str): files = sorted(glob.glob(files)) + # Call parent class __init__ + + master = files[0] # Open the master again, this time as a classic CDF instance. This will avoid diff --git a/mslib/utils/ogcwms.py b/mslib/utils/ogcwms.py index f9b2bdcc2..96b1b8c1b 100644 --- a/mslib/utils/ogcwms.py +++ b/mslib/utils/ogcwms.py @@ -173,6 +173,8 @@ def __init__(self, url, version=None, xml=None, username=None, password=None, auth=None): """Initialize.""" + + if auth: if username: auth.username = username