Skip to content

Commit

Permalink
change pystog location
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvieta1990 committed Jan 9, 2025
1 parent 3d1edec commit ccde6bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addie/post_process_m/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'Sat',
'Sun'
]
pystog_cli = "/SNS/users/y8z/miniconda/envs/pystog/bin/pystog_cli"


def open_workspaces(main_window):
Expand Down Expand Up @@ -1090,7 +1091,7 @@ def execute_stog(main_window):
os.chdir(path)
with open('pystog_input.json', 'w') as pystog_file:
json.dump(json_format, pystog_file, indent=2)
subprocess.check_call(["pystog_cli", "--json", "pystog_input.json"])
subprocess.check_call([pystog_cli, "--json", "pystog_input.json"])
os.chdir(cwd)
print("[Info] PyStoG successfully executed")

Expand Down
3 changes: 2 additions & 1 deletion addie/processing/mantid/launch_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'Sat',
'Sun'
]
pystog_cli = "/SNS/users/y8z/miniconda/envs/pystog/bin/pystog_cli"


def extractor(nexus_file: str, wks_name: str, out_dir: str, dir_name=None):
Expand Down Expand Up @@ -568,7 +569,7 @@ def run_mantid(parent):
json.dump(pystog_config, f, indent=2)
cwd = os.getcwd()
os.chdir(p_out_dir)
subprocess.run(["pystog_cli", "--json", f"{sam_title}_pystog.json"])
subprocess.run([pystog_cli, "--json", f"{sam_title}_pystog.json"])
if os.path.exists("ft.dat"):
os.remove("ft.dat")
os.chdir(cwd)
Expand Down

1 comment on commit ccde6bc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/657178"

Please sign in to comment.