diff --git a/benchmarks/backwards_ecal/Snakefile b/benchmarks/backwards_ecal/Snakefile index 9b0b155..0af7162 100644 --- a/benchmarks/backwards_ecal/Snakefile +++ b/benchmarks/backwards_ecal/Snakefile @@ -18,7 +18,7 @@ rule backwards_ecal_sim: PARTICLE="(e-|pi-)", ENERGY="[0-9]+[kMG]eV", PHASE_SPACE="(3to50|45to135|130to177)deg", - INDEX="\d{4}", + INDEX=r"\d{4}", params: N_EVENTS=get_n_events, SEED=lambda wildcards: "1" + wildcards.INDEX, @@ -51,7 +51,7 @@ rule backwards_ecal_recon: log: "sim_output/backwards_ecal/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX}.eicrecon.tree.edm4eic.root.log", wildcard_constraints: - INDEX="\d{4}", + INDEX=r"\d{4}", params: DETECTOR_CONFIG=lambda wildcards: wildcards.DETECTOR_CONFIG, EICRECON_HASH=get_spack_package_hash("eicrecon"), diff --git a/benchmarks/calo_pid/Snakefile b/benchmarks/calo_pid/Snakefile index a93cfc4..3d32bd6 100644 --- a/benchmarks/calo_pid/Snakefile +++ b/benchmarks/calo_pid/Snakefile @@ -15,7 +15,7 @@ rule calo_pid_sim: ENERGY_MAX="[0-9]+[kMG]eV", THETA_MIN="[0-9]+", THETA_MAX="[0-9]+", - INDEX="\d{4}", + INDEX=r"\d{4}", params: N_EVENTS=1000, SEED=lambda wildcards: "1" + wildcards.INDEX, @@ -55,7 +55,7 @@ rule calo_pid_recon: log: "sim_output/calo_pid/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX}.eicrecon.tree.edm4eic.root.log", wildcard_constraints: - INDEX="\d{4}", + INDEX=r"\d{4}", shell: """ set -m # monitor mode to prevent lingering processes exec env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \ diff --git a/benchmarks/ecal_gaps/Snakefile b/benchmarks/ecal_gaps/Snakefile index 6b793ef..fa5ab70 100644 --- a/benchmarks/ecal_gaps/Snakefile +++ b/benchmarks/ecal_gaps/Snakefile @@ -14,7 +14,7 @@ rule ecal_gaps_sim: PARTICLE="e-", ENERGY="(500MeV|5GeV|20GeV)", PHASE_SPACE="(3to50|45to135|130to177)deg", - INDEX="\d{4}", + INDEX=r"\d{4}", params: N_EVENTS=1000, SEED=lambda wildcards: "1" + wildcards.INDEX, @@ -47,7 +47,7 @@ rule ecal_gaps_recon: log: "sim_output/ecal_gaps/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX}.eicrecon.tree.edm4eic.root.log", wildcard_constraints: - INDEX="\d{4}", + INDEX=r"\d{4}", params: DETECTOR_CONFIG=lambda wildcards: wildcards.DETECTOR_CONFIG, EICRECON_HASH=get_spack_package_hash("eicrecon"), diff --git a/benchmarks/lfhcal/Snakefile b/benchmarks/lfhcal/Snakefile index 8f4bd68..1fc0fbe 100644 --- a/benchmarks/lfhcal/Snakefile +++ b/benchmarks/lfhcal/Snakefile @@ -17,7 +17,7 @@ rule lfhcal_sim: ENERGY="[0-9]+[kMG]eV", PARTICLE="(neutron|pi-|gamma)", PHASE_SPACE="3to50deg", - INDEX="\d{4}", + INDEX=r"\d{4}", params: N_EVENTS=get_n_events, shell: @@ -43,7 +43,7 @@ rule lfhcal_recon: log: "sim_output/lfhcal/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX}.eicrecon.tree.edm4eic.root.log", wildcard_constraints: - INDEX="\d{4}", + INDEX=r"\d{4}", shell: """ env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \ eicrecon {input} -Ppodio:output_file={output} \ diff --git a/benchmarks/tracking_performances/Snakefile b/benchmarks/tracking_performances/Snakefile index 15e7ba5..271f117 100644 --- a/benchmarks/tracking_performances/Snakefile +++ b/benchmarks/tracking_performances/Snakefile @@ -10,7 +10,7 @@ rule tracking_performance_sim: PARTICLE="pi-", ENERGY="[0-9]+[kMG]eV", PHASE_SPACE="(3to50|45to135|130to177)deg", - INDEX="\d{4}", + INDEX=r"\d{4}", params: N_EVENTS=10000 shell: @@ -37,7 +37,7 @@ rule tracking_performance_recon: log: "sim_output/tracking_performance/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX}.eicrecon.tree.edm4eic.root.log", wildcard_constraints: - INDEX="\d{4}", + INDEX=r"\d{4}", shell: """ set -m # monitor mode to prevent lingering processes exec env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \ diff --git a/benchmarks/tracking_performances_dis/Snakefile b/benchmarks/tracking_performances_dis/Snakefile index 4accce9..844c6a6 100644 --- a/benchmarks/tracking_performances_dis/Snakefile +++ b/benchmarks/tracking_performances_dis/Snakefile @@ -69,10 +69,10 @@ rule dis_analysis: hists_vtx="results/vertexing_performances_dis/{DETECTOR_CONFIG}/{PREFIX}pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_{INDEX}/hists.root", wildcard_constraints: PREFIX= ".*", - EBEAM="\d+", - PBEAM="\d+", - MINQ2="\d+", - INDEX="\d+", + EBEAM=r"\d+", + PBEAM=r"\d+", + MINQ2=r"\d+", + INDEX=r"\d+", shell: """ cat > {output.config_trk} < {output.config_trk} <