corrected increment offsetting for spectral file type. should now be consistent with new (0+N) mpie_spectral output scheme

This commit is contained in:
Philip Eisenlohr 2011-04-06 10:00:19 +00:00
parent 51763ed93e
commit a989aa979e
1 changed files with 1 additions and 3 deletions

View File

@ -753,9 +753,6 @@ else:
offset_inc = 0
if options.range:
options.range = list(options.range)
if options.filetype == 'spectral':
options.range[0] -= 1
options.range[1] -= 1
increments = range( max(0,options.range[0]),
min(stat['NumberOfIncrements'],options.range[1]+1),
options.range[2])
@ -843,6 +840,7 @@ for incCount,increment in enumerate(increments):
'label': 'location',
'content': [myElemID,myNodeID,myGrainID] + myIpCoordinates[n],
}) # first entry in this list always contains the location data
# print group,sys.getsizeof(data) # better way of tracing leaks: http://www.lshift.net/blog/2008/11/14/tracing-python-memory-leaks
# --- get data from t16 file