diff --git a/parsers/survex.py b/parsers/survex.py index 96b0875..dd4fcd3 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -26,8 +26,6 @@ todo = """ easier to understand and maintain https://mathspp.com/blog/til/re-match-groupdict -- replace hard-coded instuments list with reading an editable textfile in expoweb. - - Obscure bug in the *team inheritance and rootblock initialization needs tracking down, probably in the team cache which should NOT be global, but should be an instance variable of LoadingSurvex @@ -737,7 +735,6 @@ class LoadingSurvex: splayalias = re.match(r"(?i)\s*station\s*\-\s*\.\.\s*$", line) if splayalias: self.flagsstar["splayalias"] = True - print(f"==splayalias {line} in {survexblock=} {survexblock.survexfile.path=}") else: message = f"! Bad *ALIAS: '{line}' ({survexblock}) {survexblock.survexfile.path}" print(self.insp + message) @@ -1660,7 +1657,7 @@ class LoadingSurvex: refline = self.rx_commref.match(comment) if refline: comment = self.rx_ref2.sub("", comment.strip()) - print(f"{self.depthbegin:2}{depth} - rx_ref2 -- {comment=} in {survexblock.survexfile.path} :: {survexblock}") + # print(f"{self.depthbegin:2}{depth} - rx_ref2 -- {comment=} in {survexblock.survexfile.path} :: {survexblock}") self.LoadSurvexRef(survexblock, comment) # handle @@ -1947,7 +1944,7 @@ class LoadingSurvex: message=message, ) else: - if cmd not in ["equate", "export", "instrument", "calibrate", "cs", "require", "declination", "infer", "case"]: + if cmd not in ["equate", "export", "instrument", "calibrate", "cs", "require", "declination", "infer", "case", "sd"]: print(f"FALLTHROUGH *{cmd=} {survexblock=} {survexblock.parent=}") self.LoadSurvexFallThrough(survexblock, args, cmd)