From cab1067b70f451d298f8086971b687a0a3e97470 Mon Sep 17 00:00:00 2001 From: JoannaWojS Date: Wed, 25 Sep 2024 07:46:38 +0000 Subject: [PATCH] Fix lint issues --- .../scripts/lst1_magic/semi_automatic_scripts/clusters.py | 7 +++++-- .../lst1_magic/semi_automatic_scripts/coincident_events.py | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/clusters.py b/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/clusters.py index 5238f17e..4ff8e324 100644 --- a/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/clusters.py +++ b/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/clusters.py @@ -4,7 +4,10 @@ __all__ = ["slurm_lines", "rc_lines"] -def slurm_lines(queue, job_name, array=None, mem=None, out_name=None, nice_parameter=None): +def slurm_lines( + queue, job_name, array=None, mem=None, out_name=None, nice_parameter=None +): + """ Function for creating the general lines that slurm scripts are starting with. @@ -37,7 +40,7 @@ def slurm_lines(queue, job_name, array=None, mem=None, out_name=None, nice_param "#SBATCH -n 1\n\n", f"#SBATCH --output={out_name}.out\n" if out_name is not None else "", f"#SBATCH --error={out_name}.err\n\n" if out_name is not None else "", - f"#SBATCH --nice={nice_parameter}\n" + f"#SBATCH --nice={nice_parameter}\n", "ulimit -l unlimited\n", "ulimit -s unlimited\n", "ulimit -a\n\n", diff --git a/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/coincident_events.py b/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/coincident_events.py index cddc7342..610d67d0 100644 --- a/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/coincident_events.py +++ b/magicctapipe/scripts/lst1_magic/semi_automatic_scripts/coincident_events.py @@ -73,8 +73,9 @@ def configfile_coincidence(target_dir, source_name, config_file): yaml.dump(conf, f, default_flow_style=False) -def linking_bash_lst(target_dir, LST_runs, source_name, LST_version, env_name, cluster, Nice_parameter): - +def linking_bash_lst( + target_dir, LST_runs, source_name, LST_version, env_name, cluster, Nice_parameter +): """ This function links the LST data paths to the working directory and creates bash scripts.