Skip to content

Commit

Permalink
os.rename -> shutil.move
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Jan 7, 2024
1 parent 606ed98 commit 2620492
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmarks/backgrounds/Snakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shutil

from snakemake.remote.S3 import RemoteProvider as S3RemoteProvider

Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 2620492

Please sign in to comment.