re-introduced determination of elem column
This commit is contained in:
parent
3f340ffac9
commit
def6d6b878
|
@ -59,12 +59,13 @@ for file in files:
|
||||||
|
|
||||||
# --------------- figure out size and grid ---------------------------------------------------------
|
# --------------- figure out size and grid ---------------------------------------------------------
|
||||||
try:
|
try:
|
||||||
|
elemCol = table.labels.index('elem')
|
||||||
locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
|
locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
|
||||||
except ValueError:
|
except ValueError:
|
||||||
try:
|
try:
|
||||||
locationCol = table.labels.index('%s.x'%options.coords) # columns containing location data (legacy naming scheme)
|
locationCol = table.labels.index('%s.x'%options.coords) # columns containing location data (legacy naming scheme)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
file['croak'].write('no coordinate data (1_%s/%s.x) found...\n'%(options.coords,options.coords))
|
file['croak'].write('no coordinate (1_%s/%s.x) and/or elem data found...\n'%(options.coords,options.coords))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if (any(options.grid)==0 or any(options.size)==0.0):
|
if (any(options.grid)==0 or any(options.size)==0.0):
|
||||||
|
|
Loading…
Reference in New Issue