Skip to content

Commit

Permalink
#130 Check return code soon after running script
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Jul 3, 2024
1 parent 064fb07 commit 501735a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demerge/reduce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,21 @@ def reduce(
with TemporaryDirectory() as work_dir:
run(
["python", SCRIPTS / "Configure.py", data_dir, reduced_dir],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
)
run(
["python", SCRIPTS / "FitSweep.py"],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
)
run(
["python", SCRIPTS / "SaveFits.py"],
check=True,
cwd=work_dir,
# False if logging is implemented
capture_output=True,
Expand Down

0 comments on commit 501735a

Please sign in to comment.