Переглянути джерело

Aggiorna 'code/python/supportFunctions/get_all_data.py'

Stefano Diomedi 5 місяців тому
батько
коміт
7a96d0a3a3
1 змінених файлів з 11 додано та 10 видалено
  1. 11 10
      code/python/supportFunctions/get_all_data.py

+ 11 - 10
code/python/supportFunctions/get_all_data.py

@@ -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: