From 6a69763dbc4aa4c8c6fec743df613fc7a74a5bbb Mon Sep 17 00:00:00 2001 From: Torec Luik Date: Thu, 21 Sep 2023 18:26:02 +0200 Subject: [PATCH] Yeah, the SCP RESULT sucks --- omero_slurm_client/slurm_client.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/omero_slurm_client/slurm_client.py b/omero_slurm_client/slurm_client.py index 483f997..5eda58e 100644 --- a/omero_slurm_client/slurm_client.py +++ b/omero_slurm_client/slurm_client.py @@ -229,13 +229,10 @@ def setup_slurm(self): convert_def = f"{convert_name}.def" convert_def_local = files("resources").joinpath( convert_def) - copy_script = self.put(local=convert_script_local, - remote=slurm_convert_path) - copy_def = self.put(local=convert_def_local, - remote=slurm_convert_path) - if not copy_def.ok or not copy_script.ok: - raise SSHException(f"Failed to copy the ZARR-to-TIFF converter \ - scripts: {copy_script} / {copy_def}") + _ = self.put(local=convert_script_local, + remote=slurm_convert_path) + _ = self.put(local=convert_def_local, + remote=slurm_convert_path) # Build singularity container from definition with self.cd(slurm_convert_path): convert_cmds = []