From fc4fb43d486b7fbc63126fda653e686950a5b4aa Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Wed, 23 Aug 2017 17:53:30 -0400 Subject: [PATCH] aborting when NO data columns found --- PRIVATE | 2 +- processing/post/addLinked.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/PRIVATE b/PRIVATE index a3ec94866..5e97c9ac2 160000 --- a/PRIVATE +++ b/PRIVATE @@ -1 +1 @@ -Subproject commit a3ec948661bf33144a3bdb9f7c63b66eaa0e76ad +Subproject commit 5e97c9ac2fa4f7748a1bc040c15889623a3afd1f diff --git a/processing/post/addLinked.py b/processing/post/addLinked.py index bcde0416c..d60307bc2 100755 --- a/processing/post/addLinked.py +++ b/processing/post/addLinked.py @@ -55,6 +55,9 @@ if options.asciitable is not None and os.path.isfile(options.asciitable): if len(missing_labels) > 0: damask.util.croak('column{} {} not found...'.format('s' if len(missing_labels) > 1 else '',', '.join(missing_labels))) + if len(missing_labels) >= len(options.label): + damask.util.croak('aborting...') + sys.exit() index = linkedTable.data[:,:linkDim] data = linkedTable.data[:,linkDim:]