diff options
author | tlatorre <tlatorre@uchicago.edu> | 2021-01-15 14:18:20 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-01-15 14:18:20 -0600 |
commit | 5d60204392cd3388fba10b7f5b77c195dd8c2ece (patch) | |
tree | 33eaf9083dfb1bc8500f78858c02e6ea01ce85ac /utils/check-dqxx-files | |
parent | d668b842b65113e3260c3f1db2a7c09aaa2cafef (diff) | |
download | sddm-5d60204392cd3388fba10b7f5b77c195dd8c2ece.tar.gz sddm-5d60204392cd3388fba10b7f5b77c195dd8c2ece.tar.bz2 sddm-5d60204392cd3388fba10b7f5b77c195dd8c2ece.zip |
add script to check for missing dqxx files
Diffstat (limited to 'utils/check-dqxx-files')
-rw-r--r-- | utils/check-dqxx-files | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/check-dqxx-files b/utils/check-dqxx-files new file mode 100644 index 0000000..76fb35c --- /dev/null +++ b/utils/check-dqxx-files @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +if __name__ == '__main__': + import argparse + import numpy as np + import os + from os.path import join, exists + + parser = argparse.ArgumentParser("run null hypothesis test") + parser.add_argument("--run-list", required=True, help="run list") + args = parser.parse_args() + + run_list = np.genfromtxt(args.run_list) + + dqxx_dir = os.environ['DQXX_DIR'] + + for run in run_list: + dqxx_file = join(dqxx_dir,"DQXX_%010i.dat" % run) + + if not exists(dqxx_file): + print("%s is missing!" % dqxx_file) |