CommandLog

class CommandLog(file, prefix='', suffix='\n', own=False)[source]

Bases: object

Log MAD-X command history to a text file.

Methods Summary

__call__(command)

Log a single history line and flush to file immediately.

close()

create(filename[, prefix, suffix])

Create CommandLog from filename (overwrite/create).

Methods Documentation

__call__(command)[source]

Log a single history line and flush to file immediately.

close()[source]
classmethod create(filename, prefix='', suffix='\n')[source]

Create CommandLog from filename (overwrite/create).