Skip to content

Commit

Permalink
Update Nsid_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gduscher committed Sep 20, 2024
1 parent 373cf1f commit 2771844
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SciFiReaders/readers/SID/Nsid_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def read(self, h5_object=None):
Returns
-------
sidpy.Dataset or list of sidpy.Dataset objects
dictionary of sidpy.Dataset objects
Datasets present in the provided file
"""
if h5_object is None:
Expand Down Expand Up @@ -141,7 +141,7 @@ def read_all(self, recursive=True, parent=None):
Returns
-------
sidpy.Dataset or list of sidpy.Dataset objects
dictionary of sidpy.Dataset objects
Datasets present in the provided file
"""

Expand All @@ -166,10 +166,10 @@ def read_all(self, recursive=True, parent=None):
keys.append(key)

# Go through each of the identified
list_of_datasets = {}
dictionary_of_datasets = {}
for i,dset in enumerate(list_of_main):
list_of_datasets[keys[i]] = read_h5py_dataset(dset)
return list_of_datasets
dictionary_of_datasets[keys[i]] = read_h5py_dataset(dset)
return dictionary_of_datasets

def close(self):
self._h5_file.close()

0 comments on commit 2771844

Please sign in to comment.