From 82c9c30abf897b296543401ebb802f990952414c Mon Sep 17 00:00:00 2001 From: Beale John Henry Date: Tue, 11 Mar 2025 08:32:28 +0100 Subject: [PATCH] runs stats bit as a slurm job - since bash script doesn't load modules at the moment --- reduction_tools/partialator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reduction_tools/partialator.py b/reduction_tools/partialator.py index c41486b..578606e 100644 --- a/reduction_tools/partialator.py +++ b/reduction_tools/partialator.py @@ -355,8 +355,11 @@ def main( cwd, name, stream, pointgroup, model, iterations, cell, shells, part_h # now run the check and compare scripts print( "running check/compare" ) - submit_cmd = [ "{0}".format( check_run_file ) ] - subprocess.call( submit_cmd ) + check_job_id = submit_job( check_run_file, reservation ) + print( f"job submitted: {0}".format( check_job_id ) ) + submitted_job_ids.add( check_job_id ) + time.sleep(10) + wait_for_jobs( submitted_job_ids, 1 ) print( "done" ) # stats files names