defdap.file_readers module¶
- class defdap.file_readers.EBSDDataLoader[source]¶
Bases:
ABC
Class containing methods for loading and checking EBSD data
- class defdap.file_readers.OxfordTextLoader[source]¶
Bases:
EBSDDataLoader
- class defdap.file_readers.EdaxAngLoader[source]¶
Bases:
EBSDDataLoader
- class defdap.file_readers.OxfordBinaryLoader[source]¶
Bases:
EBSDDataLoader
- class defdap.file_readers.PythonDictLoader[source]¶
Bases:
EBSDDataLoader
- class defdap.file_readers.DICDataLoader[source]¶
Bases:
ABC
Class containing methods for loading and checking HRDIC data
- class defdap.file_readers.DavisLoader[source]¶
Bases:
DICDataLoader
- class defdap.file_readers.OpenPivLoader[source]¶
Bases:
DICDataLoader
- defdap.file_readers.read_until_string(file, term_string, comment_char='*', line_process=None, exact=False)[source]¶
Read lines in a file until a line starting with the termString is encountered. The file position is returned before the line starting with the termString when found. Comment and empty lines are ignored.
- Parameters:
file (
TextIO
) – An open python text file object.term_string (
str
) – String to terminate reading.comment_char (
str
) – Character at start of a comment line to ignore.line_process (
Optional
[Callable
[[str
],Any
],None
]) – Function to apply to each line when loaded.exact (
bool
) – A line must exactly match termString to stop.
- Returns:
List of processed lines loaded from file.
- Return type: