From f99ebf84e9da3a6f65a586977a43af992d6157a6 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 11 Mar 2022 16:22:37 +0000 Subject: running cavern on svx files improved --- parsers/survex.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'parsers/survex.py') diff --git a/parsers/survex.py b/parsers/survex.py index 8f3b65d..127bb70 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -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") -- cgit v1.2.3