Skip to content

Commit

Permalink
changed default json location
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Feb 16, 2022
1 parent 6f6e5f1 commit b0caa9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pyMBIR_UI/recon_HFIR_script_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import os
import json

STOP_FILE_NAME = "OVER.txt"
STOP_FILE_NAME = "OVER.json"


def main():
Expand Down Expand Up @@ -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()
2 changes: 1 addition & 1 deletion src/pyMBIR_UI/reconstruction_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0caa9e

Please sign in to comment.