brain_pipe.save.default.OldMetadataCompliant

class OldMetadataCompliant

Bases: ABC

Mixin class for metadata that is compliant with the old format.

__init__()

Methods

__init__()

convert_old_format(metadata_item, data_dict)

Convert the metadata item from the old format.

abstract convert_old_format(metadata_item: str, data_dict: Dict[str, Any])

Convert the metadata item from the old format.

Parameters:
  • metadata_item (str) – The metadata item to convert.

  • data_dict (Dict[str, Any]) – The data dict containing the data to save.

Returns:

The converted metadata item.

Return type:

Dict[str, Any]