exopy_pulses.pulses.utils.normalizers module

Utility functions to build user-friendly names from ids.

Those should be use as formatting function argument to the ids_to_unique_names function found in exopy.utils.transformers

exopy_pulses.pulses.utils.normalizers.normalize_sequence_name(name)[source]

Normalize sequence names.

For sequences, strip the terminal Sequence if present, replaces ‘_’ by spaces and add spaces between ‘aA’ sequences. For templates, only the extension file is removed.

exopy_pulses.pulses.utils.normalizers.normalize_context_name(name)[source]

Normalize context names.

Strip terminal Context and replaces ‘_’ by spaces and add spaces between ‘aA’ sequences.

exopy_pulses.pulses.utils.normalizers.normalize_shape_name(name)[source]

Normalize shape names.

Strip terminal Shape and replaces ‘_’ by spaces and add spaces between ‘aA’ sequences.