grasp2alm.BeamGauss.write2cut#

BeamGauss.write2cut(path: str, vini: int, vnum: int, ncut: int)[source]#

Writes the formatted beam data to the specified path with the provided headers. Each cut contains vnum lines of data.

Parameters:
  • path (str) – The path to write the beam data to.

  • vnum (int) – The number of lines in each cut.

  • ncut (int) – The number of cuts.

  • co (array) – The beam data.

Raises:

ValueError – If the path is not a string.