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:
parent
86cec35799
commit
a8a9c8eef5
|
@ -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...')
|
||||
|
|
Loading…
Reference in New Issue