sovabids.convert

Module to perform the conversions.

Attributes

Functions

convert_them(mappings_input)

Convert eeg files to bids according to the mappings given.

sovaconvert()

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

sovabids.convert.sovaconvert()[source]

Console script usage for conversion.