app.utils.util.filter_trials

filter_trials(all_data, session_id, filter_by)[source]

Returns dictionary of indices after filtering the data.

Parameters
  • all_data (np.ndarray) – A 2-d numpy array that contains data from all sessions.

  • session_id (int) – Integer that denotes a particular session.

  • filter_by (str) – condition for filter. Possible values are - ‘response’, ‘feedback’, or ‘response_feedback’.

Returns

dictionary which contains boolean indices arrays.

Return type

dict

Return type

dict