summaryrefslogtreecommitdiff
path: root/datafile.py
diff options
context:
space:
mode:
Diffstat (limited to 'datafile.py')
-rw-r--r--datafile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/datafile.py b/datafile.py
index 469e58e..0a6d5c2 100644
--- a/datafile.py
+++ b/datafile.py
@@ -217,7 +217,7 @@ class DataFile(object):
pass
# retrieve the list of the datasets present in the file
- datasets_str = self._f['Parameters and Global Attributes']['Datasets'].value
+ datasets_str = np.array(self._f['Parameters and Global Attributes']['Datasets']).item().decode('ascii')
self.datasets = []
for ds in datasets_str.strip().split():
self.datasets.append(_DataSet(self, ds))