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)
|
sortProperties.append(item)
|
||||||
|
|
||||||
theKeys = []
|
theKeys = []
|
||||||
for criterium in options.sort+sortProperties:
|
if 'none' not in map(str.lower, options.sort):
|
||||||
if criterium in where:
|
for criterium in options.sort + sortProperties:
|
||||||
theKeys.append('x[0][%i]'%where[criterium])
|
if criterium in where:
|
||||||
|
theKeys.append('x[0][%i]'%where[criterium])
|
||||||
|
|
||||||
sortKeys = eval('lambda x:(%s)'%(','.join(theKeys)))
|
sortKeys = eval('lambda x:(%s)'%(','.join(theKeys)))
|
||||||
bg.set_message('sorting groups...')
|
bg.set_message('sorting groups...')
|
||||||
|
|
Loading…
Reference in New Issue