From 0603ed6e8751910780a8fa69731de46708af5f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Fri, 1 Feb 2019 00:05:09 +0200 Subject: [PATCH] Proceswfiles version with automatic file name sorting Former-commit-id: 04d458377cf6ef061bae819126bea9f6ab3cf6a4 --- misc/processWfiles_sortnames.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 misc/processWfiles_sortnames.py diff --git a/misc/processWfiles_sortnames.py b/misc/processWfiles_sortnames.py new file mode 100755 index 0000000..6169793 --- /dev/null +++ b/misc/processWfiles_sortnames.py @@ -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) +