Proceswfiles version with automatic file name sorting

Former-commit-id: 04d458377cf6ef061bae819126bea9f6ab3cf6a4
This commit is contained in:
Marek Nečada 2019-02-01 00:05:09 +02:00
parent c5a82516eb
commit 0603ed6e87
1 changed files with 13 additions and 0 deletions

13
misc/processWfiles_sortnames.py Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env python3
import sys
from qpms import processWfiles_sameKs
npart = int(sys.argv[1])
dest = sys.argv[2]
srcs = sys.argv[3:]
srcs_sorted = sorted(srcs, key=float)
processWfiles_sameKs(srcs_sorted, dest, f='d', nparticles=npart)