irfpy.vexop.itlfile

Module corresponding the command itl file.

Only reading and parsing and processing is supported. No writing and generating itl file is not supported.

class irfpy.vexop.itlfile.ItlFile(filename, parse=True)[source]

Bases: object

parse_file()[source]
get_commandlines(commandlist=None)[source]

Return the sequence of command.

# Load a sample

>>> itl = os.path.join(os.path.dirname(__file__), 'sample', 'AS_CP0211___1486_1492__A_VS0PI1.itl')
>>> itlf = ItlFile(itl)

# You can load all the command line.

>>> allcmd = itlf.get_commandlines()
>>> print(len(allcmd))
226

# You can select the command line.

>>> partcmd = itlf.get_commandlines(commandlist=['AASF001A', 'AASF003A', 'AASF009A'])
>>> print(len(partcmd))
6
irfpy.vexop.itlfile.doctests()[source]