sovabids.convert¶
Module to perform the conversions.
Attributes¶
Functions¶
|
Convert eeg files to bids according to the mappings given. |
Console script usage for conversion. |
Module Contents¶
- sovabids.convert.LOGGER¶
- sovabids.convert.convert_them(mappings_input)[source]¶
Convert eeg files to bids according to the mappings given.
- Parameters:
mappings_input (str | pathlib.Path | dict) –
- The path to the mapping file or the mapping dictionary:
- {
‘General’: dict with the general rules, ‘Individual’: list of dicts with the individual mappings of each file.
}
- Returns:
{'succeeded': [str, ...], 'skipped': [str, ...], 'failed': [str, ...]}— source paths of files that were newly converted, skipped because their BIDS output already existed, and those that raised an error.- Return type:
dict