aborting when NO data columns found

This commit is contained in:
Philip Eisenlohr 2017-08-23 17:53:30 -04:00
parent 86ddbe19d6
commit fc4fb43d48
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit a3ec948661bf33144a3bdb9f7c63b66eaa0e76ad Subproject commit 5e97c9ac2fa4f7748a1bc040c15889623a3afd1f

View File

@ -55,6 +55,9 @@ if options.asciitable is not None and os.path.isfile(options.asciitable):
if len(missing_labels) > 0: if len(missing_labels) > 0:
damask.util.croak('column{} {} not found...'.format('s' if len(missing_labels) > 1 else '',', '.join(missing_labels))) 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] index = linkedTable.data[:,:linkDim]
data = linkedTable.data[:,linkDim:] data = linkedTable.data[:,linkDim:]