cavcalc.parameters.tools.get_name
#
- cavcalc.parameters.tools.get_name(ptype: ParameterType)#
Obtain the name of a parameter from the
ParameterType
literal.- Parameters:
- ptype
ParameterType
The parameter type.
- ptype
- Returns:
- nameOptional[str]
The name of the parameter, or
None
ifptype
does not correspond to any parameter.