mantidimaging.core.utility.imat_log_file_parser module

class mantidimaging.core.utility.imat_log_file_parser.CSVLogParser(data: List[str])[source]

Bases: object

EXPECTED_HEADER_FOR_IMAT_CSV_LOG_FILE = 'TIME STAMP,IMAGE TYPE,IMAGE COUNTER,COUNTS BM3 before image,COUNTS BM3 after image\n'
parse() Dict[IMATLogColumn, List][source]
static validate(file_contents) bool[source]
class mantidimaging.core.utility.imat_log_file_parser.IMATLogColumn(value)[source]

Bases: Enum

An enumeration.

COUNTS_AFTER = 6
COUNTS_BEFORE = 5
IMAGE_TYPE_IMAGE_COUNTER = 2
PROJECTION_ANGLE = 4
PROJECTION_NUMBER = 3
TIMESTAMP = 1
class mantidimaging.core.utility.imat_log_file_parser.IMATLogFile(data: List[str], source_file: str)[source]

Bases: object

counts() Counts[source]
static find_parser(data: List[str])[source]
projection_angles() ProjectionAngles[source]
projection_numbers()[source]
raise_if_angle_missing(image_filenames: List[str] | None) None[source]
property source_file: str
class mantidimaging.core.utility.imat_log_file_parser.TextLogParser(data: List[str])[source]

Bases: object

EXPECTED_HEADER_FOR_IMAT_TEXT_LOG_FILE = ' TIME STAMP  IMAGE TYPE   IMAGE COUNTER   COUNTS BM3 before image   COUNTS BM3 after image\n'
parse() Dict[IMATLogColumn, List][source]
static validate(file_contents) bool[source]