Skip to content

Commit

Permalink
fix the batch proc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
y8z committed Oct 16, 2024
1 parent 0f81320 commit 6f7f916
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addie/processing/mantid/launch_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ def run_mantid(parent):
check_file = os.path.join(parent.output_folder, "SofQ", f"{sam_title}.nxs")
if not os.path.isfile(check_file):
instr_name = dictionary["Instrument"].upper()
run_num_tmp = int(dictionary["Sample"]["Runs"].split("-")[0])
run_num_tmp = int(
dictionary["Sample"]["Runs"].split("-")[0].split(",")[0]
)
ipts_dir = GetIPTS(Instrument=instr_name, RunNumber=run_num_tmp)
check_file = os.path.join(ipts_dir, "shared",
"autoreduce", "multi_banks_summed",
Expand Down Expand Up @@ -539,7 +541,9 @@ def run_mantid(parent):
f"{sam_title}_merged.sq")
if not os.path.isfile(check_file):
instr_name = dictionary["Instrument"].upper()
run_num_tmp = int(dictionary["Sample"]["Runs"].split("-")[0])
run_num_tmp = int(
dictionary["Sample"]["Runs"].split("-")[0].split(",")[0]
)
ipts_dir = GetIPTS(Instrument=instr_name, RunNumber=run_num_tmp)
check_file = os.path.join(ipts_dir, "shared",
"autoreduce", "multi_banks_summed",
Expand Down

1 comment on commit 6f7f916

@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/626108"

Please sign in to comment.