Skip to content

Commit 644f4bb

Browse files
authored
Merge pull request #4 from KushDutta23/KushDutta23-patch-4
Fix super() call in MFDatasetCommonDims constructor
2 parents b7214ee + 789a034 commit 644f4bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mslib/utils/netCDF4tools.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ class MFDatasetCommonDims(netCDF4.MFDataset):
200200

201201
def __init__(self, files, exclude=None, skip_dim_check=None,
202202
require_dim_num=False):
203+
super(MFDatasetCommonDims, self).__init__(files)
204+
205+
super().__init__(files)
206+
203207
"""
204208
Open a Dataset spanning multiple files sharing common dimensions but
205209
containing different record variables, making it look as if it was a
@@ -247,7 +251,7 @@ def __init__(self, files, exclude=None, skip_dim_check=None,
247251

248252
# Open the master again, this time as a classic CDF instance. This will avoid
249253
# calling methods of the CDFMF subclass when querying the master file.
250-
cdfm = netCDF4.Dataset(master)
254+
251255
# copy attributes from master.
252256
self.__dict__.update(cdfm.__dict__)
253257

0 commit comments

Comments
 (0)