sf.tdm.is_ptype

is_ptype(name)[source]

Checks whether a variable name is a p-type variable.

p-type variables are used with TDM programs to represent a looped-over parameter, and consist of the letter ‘p’ followed by an integer. For example, ‘p0’, ‘p1’, ‘p42’.

Return type

bool