From b0caa9eb6dd4ebe548f16a79d74a46a4965bfc0e Mon Sep 17 00:00:00 2001 From: j35 Date: Wed, 16 Feb 2022 11:13:59 -0500 Subject: [PATCH] changed default json location --- src/pyMBIR_UI/recon_HFIR_script_batch.py | 4 ++-- src/pyMBIR_UI/reconstruction_launcher.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyMBIR_UI/recon_HFIR_script_batch.py b/src/pyMBIR_UI/recon_HFIR_script_batch.py index 6b0b992..f4644c7 100644 --- a/src/pyMBIR_UI/recon_HFIR_script_batch.py +++ b/src/pyMBIR_UI/recon_HFIR_script_batch.py @@ -23,7 +23,7 @@ import os import json -STOP_FILE_NAME = "OVER.txt" +STOP_FILE_NAME = "OVER.json" def main(): @@ -157,7 +157,7 @@ def main(): # when done write stop file in batch mode #if input_dict["running_mode"] == "batch": - + # with open(STOP_FILE_NAME if __name__ == "__main__": main() diff --git a/src/pyMBIR_UI/reconstruction_launcher.py b/src/pyMBIR_UI/reconstruction_launcher.py index 29c7967..8fb5403 100644 --- a/src/pyMBIR_UI/reconstruction_launcher.py +++ b/src/pyMBIR_UI/reconstruction_launcher.py @@ -166,7 +166,7 @@ def run(self): self.dictionary_of_arguments = dictionary_of_arguments logging.info(f"-> Saving config file to be called from command line script") - home_folder = os.path.abspath("~/") + home_folder = os.path.expanduser("~") json_file_name = os.path.join(home_folder, "config_batch_mode.json" ) with open(json_file_name, 'w') as json_file: json.dump(dictionary_of_arguments, json_file)