format_cmdpar

format_cmdpar(cmd, key, value)[source]

Format a single MAD-X command parameter.

Parameters:
  • cmd – A MAD-X Command instance for which an argument is to be formatted

  • key (str) – name of the parameter

  • value – argument value

Return type:

str