derotation.config.load_config#
Functions
Load a pre-filled configuration file for the derotation pipeline. |
|
|
Update the paths in the config dictionary based on the provided arguments. |
- derotation.config.load_config.load_config()[source]#
Load a pre-filled configuration file for the derotation pipeline.
- Returns:
The configuration dictionary.
- Return type:
dict
- derotation.config.load_config.update_config_paths(config, tif_path, aux_path, stim_randperm_path, output_folder, folder_suffix='')[source]#
Update the paths in the config dictionary based on the provided arguments.
- Parameters:
config (dict) – The configuration dictionary.
tif_path (str) – The path to the tif file to be derotated.
aux_path (str) – The path to the bin file containing analog signals.
dataset_path (str) – The path to the dataset folder.
output_folder (str) – The path to the output folder in which to save the results.
folder_suffix (str, optional) – A suffix to append to the output folder names (default is an empty string).
- Returns:
The updated configuration dictionary.
- Return type:
dict