|
@@ -6,17 +6,18 @@ import h5py
|
|
|
import numpy as np
|
|
|
|
|
|
def get_all_data_from_level_h5(filename, str):
|
|
|
-
|
|
|
- # INPUT:
|
|
|
- # filename = a string that identifies the h5 file from which to extract data
|
|
|
- # str = the group from which to extract the data. The function
|
|
|
- # automatically extracts every dataset of the group
|
|
|
-
|
|
|
- # OUTPUT:
|
|
|
- # spikes = contains the extracted spike timing for each dataset
|
|
|
- # markers = contains the extracted marker timing for each dataset
|
|
|
- # all_strings = keeps track of the datasets extracted
|
|
|
+ """
|
|
|
+ INPUT:
|
|
|
+ filename = a string that identifies the h5 file from which to extract data
|
|
|
+ str = the group from which to extract the data. The function
|
|
|
+ automatically extracts every dataset of the group
|
|
|
|
|
|
+ RETURN:
|
|
|
+ spikes = numpy arrays that contains the extracted spike timing for each dataset
|
|
|
+ markers = numpy arrays that contains the extracted marker timing for each dataset
|
|
|
+ all_strings = string that keeps track of the datasets extracted
|
|
|
+ """
|
|
|
+
|
|
|
|
|
|
with h5py.File(filename, 'r') as f:
|
|
|
if 'trial' in str:
|