qpms/misc/processWfiles_sortnames.py

14 lines
244 B
Python
Executable File

#!/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)