Browse Source

Overwrite names and descriptions of analog signals in ReachGraspIO.

Michael Denker 1 year ago
parent
commit
84a49f4e81
1 changed files with 14 additions and 0 deletions
  1. 14 0
      code/reachgraspio/reachgraspio.py

+ 14 - 0
code/reachgraspio/reachgraspio.py

@@ -889,6 +889,10 @@ class ReachGraspIO(BlackrockIO):
 
             if not any(neural_chids):
                 asig.annotate(neural_signal=False)
+                asig.name = "Behavioural Time Series"
+                asig.descriptions = "This Analogsignal object contains the continuous behavioural time series recorded in " \
+                                    "the experiment, including object displacements and measurements of the " \
+                                    "gripforce sensors."
             elif all(neural_chids):
                 asig.annotate(neural_signal=True)
 
@@ -929,6 +933,16 @@ class ReachGraspIO(BlackrockIO):
                     filter_type=filter_type
                 ))
 
+                if asig.sampling_rate == pq.Quantity(30000 * pq.Hz):
+                    asig.name = "Raw Neural Time Series"
+                    asig.description = "This Analogsignal object contains the continuous raw neuronal recordings " \
+                                       "sampled at high resolution."
+                if asig.sampling_rate == pq.Quantity(1000 * pq.Hz):
+                    asig.name = "Downsampled Neural Time Series"
+                    asig.description = "This Analogsignal object contains the downsampled continuous neuronal " \
+                                       "recordings, where the downsampling was performed on-line by the recording " \
+                                       "system."
+
                 self.__annotate_electrode_rejections(asig)
 
     def __annotate_electrode_rejections(self, obj):