reda.importers.utils package

Submodules

reda.importers.utils.decorators module

reda.importers.utils.decorators.enable_result_transforms(func)[source]

Decorator that tries to use the object provided using a kwarg called ‘electrode_transformator’ to transform the return values of an import function. It is intended to be used to transform electrode numbers and locations, i.e. for use in roll-along-measurement schemes.

The transformator object must have a function .transform, which takes three parameters: data, electrode, topography and returns three correspondingly transformed objects.

reda.importers.utils.transforms module

This file contains transform functions for electrode numbering. If want to apply custom electrode renumbering, use these functions as starting points to design your own.

class reda.importers.utils.transforms.transform_electrodes_roll_along(shiftby=0)[source]

Bases: object

This function shifts all electrode numbers by a fixed offset, as commonly encountered for roll-a-long measurement schemes.

This transformation should only be used for logical abmn transformations, i.e., in those cases were electrode positions are not available. Otherwise roll-along should be realized using coordinate transformations.

Methods

transform

transform(data, electrodes, topography)[source]