From d2fce2358a496dcf4115f251dd78e681d8b4e937 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Tue, 17 Aug 2021 18:04:10 +0100 Subject: [PATCH] after_ok and after_any are optional --- src/xfel_calibrate/calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xfel_calibrate/calibrate.py b/src/xfel_calibrate/calibrate.py index 0a0cffe4a..f3f50120e 100755 --- a/src/xfel_calibrate/calibrate.py +++ b/src/xfel_calibrate/calibrate.py @@ -783,7 +783,7 @@ class JobArgs: def run_direct(self, run_tmp_path, python) -> int: return call(self.format_cmd(run_tmp_path, python)) - def submit_job(self, run_tmp_path, python, args, after_ok, after_any): + def submit_job(self, run_tmp_path, python, args, after_ok=(), after_any=()): cmd = get_launcher_command(args, run_tmp_path, after_ok, after_any) cmd += self.format_cmd(run_tmp_path, python) output = check_output(cmd).decode('utf-8') -- GitLab