From 2620492fe3eb8441082a1bac53070b7653bc262a Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 7 Jan 2024 12:59:22 -0500 Subject: [PATCH] os.rename -> shutil.move --- benchmarks/backgrounds/Snakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/benchmarks/backgrounds/Snakefile b/benchmarks/backgrounds/Snakefile index ac920ef8..7d41387e 100644 --- a/benchmarks/backgrounds/Snakefile +++ b/benchmarks/backgrounds/Snakefile @@ -1,4 +1,5 @@ import os +import shutil from snakemake.remote.S3 import RemoteProvider as S3RemoteProvider @@ -16,7 +17,7 @@ rule backgrounds_get_beam_gas_electron: output: "input/backgrounds/beam_gas_electron.hepmc", run: - os.rename(input[0], output[0]) + shutil.move(input[0], output[0]) rule backgrounds_get_beam_gas_proton: @@ -25,7 +26,7 @@ rule backgrounds_get_beam_gas_proton: output: "input/backgrounds/beam_gas_proton.hepmc", run: - os.rename(input[0], output[0]) + shutil.move(input[0], output[0]) rule backgrounds_get_DIS: @@ -34,7 +35,7 @@ rule backgrounds_get_DIS: output: dis_sim="input/backgrounds/pythia8NCDIS_10x100_minQ2=10_beamEffects_xAngle=-0.025_hiDiv_1.0000.edm4hep.root", run: - os.rename(input[0], output[0]) + shutil.move(input[0], output[0]) rule backgrounds_sim: