feynml.util.propagator_id_wrap

feynml.util.propagator_id_wrap(idd)[source]

Wrap a propagator id in the format expected by feynml.

Parameters:

idd – The id of the propagator.

Returns:

The wrapped id.

Examples

>>> propagator_id_wrap(1)
'Propagator1'
>>> propagator_id_wrap(-1)
'Propagatorm1'