qsirecon.utils.misc module
Miscellaneous utility functions.
- qsirecon.utils.misc.bids_response_function_to_mrtrix(json_file)[source]
Convert a JSON response function to an MRtrix format.
- qsirecon.utils.misc.deep_update_dict(base_dict, update_dict)[source]
Recursively update a dictionary with another dictionary.
This function updates base_dict with values from update_dict, recursively merging nested dictionaries instead of replacing them.
- Parameters:
base_dict (dict) – The dictionary to be updated
update_dict (dict) – The dictionary with updates
- Returns:
The updated dictionary
- Return type:
- qsirecon.utils.misc.listify(obj)[source]
Wrap all non-list or tuple objects in a list.
This provides a simple way to accept flexible arguments.