mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 12:17:09 +00:00
Much QM re-engineering
This commit is contained in:
@@ -1309,7 +1309,10 @@ class LoadingSurvex:
|
||||
|
||||
insp = self.insp
|
||||
# create a short, hopefully-unique name for this block to be used in the QM id
|
||||
blockname = survexblock.name[:6] + survexblock.name[-1:]
|
||||
if len(survexblock.name) < 7:
|
||||
blockname = survexblock.name
|
||||
else:
|
||||
blockname = survexblock.name[:6] + survexblock.name[-1:]
|
||||
# logslug = f'D{int(qmyear)}_{blockname}_{int(qm_no):03d}'
|
||||
qm_ticked = False # default
|
||||
|
||||
@@ -1319,7 +1322,7 @@ class LoadingSurvex:
|
||||
self.TickSurvexQM(survexblock, qmline)
|
||||
return
|
||||
|
||||
if qm_grade not in ["A", "B", "C", "D", "X", "V", "?"]:
|
||||
if qm_grade not in ["A", "B", "C", "D", "X"]: # "V", "?" not allowed in survex file QMs
|
||||
message = f" ! QM{qm_no} INVALID code '{qm_grade}' [{blockname}] '{survexblock.survexfile.path}'"
|
||||
print(insp + message)
|
||||
stash_data_issue(
|
||||
@@ -1336,7 +1339,7 @@ class LoadingSurvex:
|
||||
pass
|
||||
else:
|
||||
qm_ticked = True
|
||||
print(f"{survexblock.survexfile.cave} {survexblock}:{qm_no}{qm_grade} {qmline.group(4)}", file=sys.stderr)
|
||||
# print(f"{survexblock.survexfile.cave} {survexblock}:{qm_no}{qm_grade} {qmline.group(4)}", file=sys.stderr)
|
||||
if resolution_station_name:
|
||||
qm_ticked = True
|
||||
# if qmline.group(6) and qmline.group(6) != "-":
|
||||
|
||||
Reference in New Issue
Block a user