From 8c6098134eeee73057f618b2c6fd64061bbf0d5c Mon Sep 17 00:00:00 2001 From: Kazadhum Date: Fri, 3 May 2024 11:41:13 +0100 Subject: [PATCH] initial commit for the rwhe calibration script #939 --- .../other_calibrations/rwhe_calib_ali.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 atom_evaluation/scripts/other_calibrations/rwhe_calib_ali.py diff --git a/atom_evaluation/scripts/other_calibrations/rwhe_calib_ali.py b/atom_evaluation/scripts/other_calibrations/rwhe_calib_ali.py new file mode 100755 index 00000000..bd1478f1 --- /dev/null +++ b/atom_evaluation/scripts/other_calibrations/rwhe_calib_ali.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 + +import argparse +import json + +def main(): + + # Parse command line arguments + ap = argparse.ArgumentParser() + ap.add_argument("-json", "--json_file", type=str, required=True, + help="Json file containing input dataset.") + args = vars(ap.parse_args()) + + json_file = args['json_file'] + + # Read dataset file + f = open(json_file, 'r') + dataset = json.load(f) + + # Close dataset file + f.close() + + print(dataset) + + +if __name__ == '__main__': + main() \ No newline at end of file