brain_pipe.save.default.CheckFunctor

class CheckFunctor(saver=None)

Bases: Callable[[Dict[str, Any], str, Dict[str, Any]], str | bool], AttachSave, ABC

Functor to use with DefaultSave to check something about of a metadata item.

__init__(saver=None)

Initialize the AttachSaver.

Parameters:

saver (Optional[Save]) – The saver to use. Can be attached later with attach_saver(), but that will create a new object.

Methods

__init__([saver])

Initialize the AttachSaver.

attach_saver(saver)

Initialize a new object with the saver.

attach_saver(saver)

Initialize a new object with the saver.

Parameters:

saver (Save) – The saver.