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)