Skip to content

Commit 3bd1be8

Browse files
committed
Fixed issue when saving spectra
1 parent b389884 commit 3bd1be8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spectro.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,8 @@ def __getitem__(self, indicator_tuple):
788788
for key in folder.keys():
789789
tp_dict_to_return[key] = folder[key][indicator_tuple[2]]
790790

791+
return tp_dict_to_return
792+
791793
elif class_types == (str, int, slice):
792794

793795
# Here we want all spectra corresponding to one delay and from
@@ -810,6 +812,8 @@ def __getitem__(self, indicator_tuple):
810812
self._hidden_directory[folder_id][subfolder_id][
811813
indicator_tuple[2]]
812814

815+
return tp_dict_to_return
816+
813817
elif class_types == (slice, int, slice):
814818

815819
# This is all spectra with the same delay number (subfolder_id)
@@ -820,6 +824,8 @@ def __getitem__(self, indicator_tuple):
820824
tp_dict_to_return[folder_id] =\
821825
self._hidden_directory[folder_id][indicator_tuple[1]]
822826

827+
return tp_dict_to_return
828+
823829
elif class_types == (str, slice, slice):
824830

825831
# This is all spectra in the same folder

0 commit comments

Comments
 (0)