mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 06:07:17 +00:00
something
This commit is contained in:
@@ -290,7 +290,7 @@ class LoadingSurvex:
|
||||
rx_person = re.compile(r"(?i) and |/| / |, | , |&| & | \+ |^both$|^none$")
|
||||
|
||||
rx_tapelng = re.compile(r"(?i).*(tape|length).*$") # normal tape
|
||||
rx_cartlng = re.compile(r"(?i).*([-+]?\d*\.\d+)") # cartesian units and scale
|
||||
rx_cartlng = re.compile(r"(?i).*([-+]?\d+\.\d+)") # cartesian units and scale
|
||||
|
||||
rx_cave = re.compile(r"(?i)caves-(\d\d\d\d)/([-\d\w]+|\d\d\d\d-?\w+-\d+)")
|
||||
rx_comment = re.compile(r"([^;]*?)\s*(?:;\s*(.*))?\n?$")
|
||||
@@ -797,7 +797,7 @@ class LoadingSurvex:
|
||||
return
|
||||
scale = self.rx_cartlng.match(line)
|
||||
if scale:
|
||||
message = f"! *UNITS SCALE '{line}' ({survexblock}) {survexblock.survexfile.path} {len(scale.groups())} {scale.groups()[0]=}"
|
||||
message = f"✓ *UNITS SCALE '{line}' ({survexblock}) {survexblock.survexfile.path} {len(scale.groups())} {scale.groups()[0]=}"
|
||||
print(self.insp + message)
|
||||
stash_data_issue(parser="survexunits", message=message, url=None, sb=(survexblock.survexfile.path))
|
||||
self.unitsfactor = float(scale.groups()[0])
|
||||
|
||||
Reference in New Issue
Block a user