diff --git a/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py b/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py index 643578114..18350f503 100644 --- a/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py +++ b/noinfo/prospecting_guide_scripts/make-prospectingguide-new.py @@ -335,9 +335,13 @@ for fnm in ("../all.3d", "../alltracks.3d"): draw = draws[mapcode] lastx, lasty = 0, 0 for l in file3d: + # Quickly skip data we aren't interested in + if l.startswith("ERROR_INFO"): continue + if l.startswith("XSECT"): continue + match = re.match(r''' ^ #start - (MOVE|LINE|NODE|XSECT|XSECT_END|STOP) #one of six data types + (MOVE|LINE|NODE) #data type \s+(-?[0-9.]+) #X-co-ord \s+(-?[0-9.]+) #Y-co-ord \s+(-?[0-9.]+) #altitude