mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 13:03:46 +00:00
something
This commit is contained in:
@@ -290,7 +290,7 @@ class LoadingSurvex:
|
|||||||
rx_person = re.compile(r"(?i) and |/| / |, | , |&| & | \+ |^both$|^none$")
|
rx_person = re.compile(r"(?i) and |/| / |, | , |&| & | \+ |^both$|^none$")
|
||||||
|
|
||||||
rx_tapelng = re.compile(r"(?i).*(tape|length).*$") # normal tape
|
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_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?$")
|
rx_comment = re.compile(r"([^;]*?)\s*(?:;\s*(.*))?\n?$")
|
||||||
@@ -797,7 +797,7 @@ class LoadingSurvex:
|
|||||||
return
|
return
|
||||||
scale = self.rx_cartlng.match(line)
|
scale = self.rx_cartlng.match(line)
|
||||||
if scale:
|
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)
|
print(self.insp + message)
|
||||||
stash_data_issue(parser="survexunits", message=message, url=None, sb=(survexblock.survexfile.path))
|
stash_data_issue(parser="survexunits", message=message, url=None, sb=(survexblock.survexfile.path))
|
||||||
self.unitsfactor = float(scale.groups()[0])
|
self.unitsfactor = float(scale.groups()[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user