mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
strip spaces in pending caves list
This commit is contained in:
parent
29c5c82337
commit
8d08a67302
@ -781,7 +781,7 @@ class LoadingSurvex():
|
|||||||
with open(fpending, "r") as fo:
|
with open(fpending, "r") as fo:
|
||||||
cids = fo.readlines()
|
cids = fo.readlines()
|
||||||
for cid in cids:
|
for cid in cids:
|
||||||
id = cid.rstrip('\n').upper()
|
id = cid.strip().rstrip('\n').upper()
|
||||||
if cid.startswith("162"):
|
if cid.startswith("162"):
|
||||||
self.pending.add(id)
|
self.pending.add(id)
|
||||||
else:
|
else:
|
||||||
@ -808,9 +808,10 @@ class LoadingSurvex():
|
|||||||
print(f'! ALREADY PENDING {id}',file=sys.stderr)
|
print(f'! ALREADY PENDING {id}',file=sys.stderr)
|
||||||
return
|
return
|
||||||
|
|
||||||
message = f" ! Warning: cave identifier '{caveid}' (guessed from file path) is not a known cave. Need to add to expoweb/cave_data/pending.txt ? In '{includelabel}.svx' at depth:[{len(depth)}]."
|
message = f" ! Warning: cave identifier '{caveid}'or {id} (guessed from file path) is not a known cave. Need to add to expoweb/cave_data/pending.txt ? In '{includelabel}.svx' at depth:[{len(depth)}]."
|
||||||
print("\n"+message)
|
print("\n"+message)
|
||||||
print("\n"+message,file=sys.stderr)
|
print("\n"+message,file=sys.stderr)
|
||||||
|
print(f"{self.pending}",end="", file=sys.stderr)
|
||||||
DataIssue.objects.create(parser='survex', message=message, url=get_offending_filename(includelabel))
|
DataIssue.objects.create(parser='survex', message=message, url=get_offending_filename(includelabel))
|
||||||
# print(f' # datastack in LoadSurvexFile:{includelabel}', file=sys.stderr)
|
# print(f' # datastack in LoadSurvexFile:{includelabel}', file=sys.stderr)
|
||||||
# for dict in self.datastack:
|
# for dict in self.datastack:
|
||||||
@ -1591,9 +1592,9 @@ def FindAndLoadSurvex(survexblockroot):
|
|||||||
flinear.close()
|
flinear.close()
|
||||||
fcollate.close()
|
fcollate.close()
|
||||||
|
|
||||||
print("\n - {:,} runs of survex 'cavern' refreshing .3d files in the unseen list \n".format(omit_scan.caverncount),file=sys.stderr)
|
print("\n - {:,} runs of survex 'cavern' refreshing .3d files in the unseen list".format(omit_scan.caverncount),file=sys.stderr)
|
||||||
|
|
||||||
print("\n - {:,} survex files in linear include list including previously unseen ones \n".format(len(omit_scan.svxfileslist)),file=sys.stderr)
|
print(" - {:,} survex files in linear include list including previously unseen ones \n".format(len(omit_scan.svxfileslist)),file=sys.stderr)
|
||||||
omit_scan = None # Hmm. Does this actually delete all the instance variables if they are lists, dicts etc.?
|
omit_scan = None # Hmm. Does this actually delete all the instance variables if they are lists, dicts etc.?
|
||||||
|
|
||||||
mem1 = get_process_memory()
|
mem1 = get_process_memory()
|
||||||
|
Loading…
Reference in New Issue
Block a user