load module
Define functions to load and preprocess the TraceWin files.
- load_dat_file(dat_path, *, keep='none', instructions_to_insert=())[source]
Load the dat file and convert it into a list of lines.
- Parameters:
dat_path (
Path) – Filepath to theDATfile, as understood by TraceWin.keep (
Literal['none','comments','empty lines','all'], default:'none') – To determine which un-necessary lines in the dat file should be kept.instructions_to_insert (
Collection[Instruction], default:()) – Some elements or commands that are not present in theDATfile but that you want to add.
- Return type:
- Returns:
List containing all the lines of dat_path.