derotation.load_data.custom_data_loaders#
These functions are used to load data from the custom data format used in the experiments. The data is saved by MATLAB scripts that are not included in this repository. The idea is that these functions can be re-written if the preprocessing in Matlab is changed or if the experimental setup is changed.
Functions
|
Convert 16-bit integer to volts between -10 and 10. |
|
Read the analog signals: frame clock, line clock, full rotation and rotation ticks. |
|
Read the randomized stimulus table used in the experiments. |
- derotation.load_data.custom_data_loaders.read_randomized_stim_table(path_to_randperm)[source]#
Read the randomized stimulus table used in the experiments. It contains the direction and speed of rotation for each trial.
- Parameters:
path_to_randperm (str) – Path to the randomized stimulus table.
- Returns:
Tuple containing the direction and speed of rotation for each trial.
- Return type:
tuple
- derotation.load_data.custom_data_loaders.convert_to_volts(data)[source]#
Convert 16-bit integer to volts between -10 and 10.
- Parameters:
data (np.ndarray) – Data from the binary file.
- Returns:
Data in volts.
- Return type:
np.ndarray
- derotation.load_data.custom_data_loaders.get_analog_signals(path_to_aux, channel_names)[source]#
Read the analog signals: frame clock, line clock, full rotation and rotation ticks.
- Parameters:
path_to_aux (str) – Path to the binary file.
channel_names (list) – Names of the channels in the binary file.
- Returns:
Tuple containing the frame clock, line clock, full rotation and rotation ticks.
- Return type:
tuple