running cavern on svx files improved

This commit is contained in:
Philip Sargent
2022-03-11 16:22:37 +00:00
parent 8e78dd4a2e
commit f99ebf84e9
5 changed files with 100 additions and 46 deletions

View File

@@ -1221,8 +1221,14 @@ class LoadingSurvex():
self.caverncount += 1
# should also collect all the .err files too and create a DataIssue for each one which
# - is nonzero in size
# - is nonzero in size AND
# - has Error greater than 5% anywhere, or some other more serious error
errpath = Path(fullpath + ".err")
if errpath.is_file():
if errpath.stat().st_size == 0:
errpath.unlink() # delete empty closure error file
svxpath = Path(fullpath + ".svx")
logpath = Path(fullpath + ".log")