def __str__(self):
    'String method for the class\n\n        The method transforms theconfiguration\n        beam object into its string representation.\n        '
    rstring = '\n#-----------\n#\n# Beam {0:s}:\n#\n#-----------\n'.format(str(self.ident))
    for key in self.beamkeys:
        rstring += str(key)
    rstring += str(self.trace)
    rstring += str(self.disp)
    return rstring
String method for the class

The method transforms theconfiguration
beam object into its string representation.
def __str__(self):
    'String method for the class\n\n        The method transforms theconfiguration\n        beam object into its string representation.\n        '
    rstring = '\n#-----------\n#\n# Beam {0:s}:\n#\n#-----------\n'.format(str(self.ident))
    for key in self.beamkeys:
        rstring += str(key)
    rstring += str(self.trace)
    rstring += str(self.disp)
    return rstring