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.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