mcstasscript.helper.mcstas_objects.write_parameter

mcstasscript.helper.mcstas_objects.write_parameter

mcstasscript.helper.mcstas_objects.write_parameter(fo, parameter, stop_character)

Writes a parameter object to McStas define section

Parameters
  • fo (file object) – Open file object to write parameter string to

  • parameter (Parameter) – Parameter object to be written

  • stop_character (str) – Character inserted after parameter, usually comma and space