mantidimaging.core.io.instrument_log_implmentations module#

class mantidimaging.core.io.instrument_log_implmentations.LegacyIMATLogFile(lines: list[str])[source]#

Bases: InstrumentLogParser

Wrap existing IMATLogFile class

classmethod match(lines: list[str], filename: str) bool[source]#

Check if the name and content of the file is likely to be readable by this parser.

parse() dict[LogColumn, list[float | int]][source]#

Parse the log file

static read_imat_date(time_stamp: str) datetime[source]#
class mantidimaging.core.io.instrument_log_implmentations.LegacyShutterCountLogParser(lines: list[str])[source]#

Bases: InstrumentShutterCountParser

Parser for shutter count files without a header searching for files ending in “ShutterCount.txt” Tab separated columns of Pulse number, Shutter count

delimiter = '\t'#
classmethod match(lines: list[str], filename: str) bool[source]#

Check if the name and content of the file is likely to be readable by this parser.

parse() dict[ShutterCountColumn, list[float | int]][source]#

Parse the log file and return the shutter count data

class mantidimaging.core.io.instrument_log_implmentations.LegacySpectraLogParser(lines: list[str])[source]#

Bases: InstrumentLogParser

Parser for spectra files without a header

Tab separated columns of Time of flight [s], Counts

delimiter = '\t'#
classmethod match(lines: list[str], filename: str) bool[source]#

Check if the name and content of the file is likely to be readable by this parser.

parse() dict[LogColumn, list[float | int]][source]#

Parse the log file