added possibility to not sort (--sort none) output by its --separation such that the output can be used in conjunction with the VTK files produced by DAMASK.

This commit is contained in:
Philip Eisenlohr 2014-04-14 21:45:24 +00:00
parent 86cec35799
commit a8a9c8eef5
1 changed files with 4 additions and 3 deletions

View File

@ -999,9 +999,10 @@ for item in options.sep:
sortProperties.append(item)
theKeys = []
for criterium in options.sort+sortProperties:
if criterium in where:
theKeys.append('x[0][%i]'%where[criterium])
if 'none' not in map(str.lower, options.sort):
for criterium in options.sort + sortProperties:
if criterium in where:
theKeys.append('x[0][%i]'%where[criterium])
sortKeys = eval('lambda x:(%s)'%(','.join(theKeys)))
bg.set_message('sorting groups...')