brainevent.normalize_tokens

brainevent.normalize_tokens#

brainevent.normalize_tokens(tokens)[source]#

Normalise compatible tokens to canonical BE form.

The following aliases are accepted and converted transparently:

All other tokens (including fully-typed "attr.name:type" forms) are returned unchanged.

Parameters:

tokens (list[str]) – Raw arg_spec tokens, possibly using conventions.

Returns:

Tokens in canonical BE form.

Return type:

list[str]