changed default position column format from .x,.y,.z to more standard 1_,2_,3_

This commit is contained in:
Philip Eisenlohr 2014-11-18 15:18:27 +00:00
parent b3a96d40c5
commit b5ef329f34
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ for file in files:
# --------------- figure out position of labels and coordinates ------------------------------------ # --------------- figure out position of labels and coordinates ------------------------------------
try: try:
locationCol = table.labels.index('%s.x'%options.coords) # columns containing location data locationCol = table.labels.index('1_%s'%options.coords) # columns containing location data
except ValueError: except ValueError:
file['croak'].write('no coordinate data (%s.x) found...\n'%options.coords) file['croak'].write('no coordinate data (%s.x) found...\n'%options.coords)
continue continue
@ -146,7 +146,7 @@ for file in files:
# ------------------------------------------ process data ------------------------------------------ # ------------------------------------------ process data ------------------------------------------
table.data_readArray([options.coords+'.x',options.coords+'.y',options.coords+'.z',options.id]) table.data_readArray(['1_'+options.coords,'2_'+options.coords,'3_'+options.coords,options.id])
coords = [{},{},{}] coords = [{},{},{}]
for i in xrange(len(table.data)): for i in xrange(len(table.data)):