Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
detector_benchmarks
Commits
382552a9
Commit
382552a9
authored
4 months ago
by
Dmitry Kalinkin
Browse files
Options
Downloads
Patches
Plain Diff
benchmarks/ecal_gaps: move output to results/{DETECTOR_CONFIG}
parent
aa1e19b9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/ecal_gaps/Snakefile
+3
-5
3 additions, 5 deletions
benchmarks/ecal_gaps/Snakefile
benchmarks/ecal_gaps/config.yml
+3
-3
3 additions, 3 deletions
benchmarks/ecal_gaps/config.yml
with
6 additions
and
8 deletions
benchmarks/ecal_gaps/Snakefile
+
3
−
5
View file @
382552a9
...
@@ -49,23 +49,20 @@ exec env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \
...
@@ -49,23 +49,20 @@ exec env DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \
"""
"""
DETECTOR_CONFIG=os.environ["DETECTOR_CONFIG"]
rule ecal_gaps:
rule ecal_gaps:
input:
input:
matplotlibrc=".matplotlibrc",
matplotlibrc=".matplotlibrc",
script="benchmarks/ecal_gaps/ecal_gaps.py",
script="benchmarks/ecal_gaps/ecal_gaps.py",
# TODO pass as a file list?
# TODO pass as a file list?
_=expand(
_=expand(
"sim_output/ecal_gaps/{DETECTOR_CONFIG}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX:04d}.eicrecon.tree.edm4eic.root",
"sim_output/ecal_gaps/{{DETECTOR_CONFIG}}/{PARTICLE}/{ENERGY}/{PHASE_SPACE}/{PARTICLE}_{ENERGY}_{PHASE_SPACE}.{INDEX:04d}.eicrecon.tree.edm4eic.root",
DETECTOR_CONFIG=DETECTOR_CONFIG,
PARTICLE=["e-"],
PARTICLE=["e-"],
ENERGY=["500MeV", "5GeV", "20GeV"],
ENERGY=["500MeV", "5GeV", "20GeV"],
PHASE_SPACE=["3to50deg", "45to135deg", "130to177deg"],
PHASE_SPACE=["3to50deg", "45to135deg", "130to177deg"],
INDEX=range(1),
INDEX=range(1),
),
),
output:
output:
directory("results/ecal_gaps"),
directory("results/
{DETECTOR_CONFIG}/
ecal_gaps"),
threads: workflow.cores
threads: workflow.cores
shell:
shell:
"""
"""
...
@@ -85,5 +82,6 @@ WORKER_PID=$!
...
@@ -85,5 +82,6 @@ WORKER_PID=$!
env \
env \
MATPLOTLIBRC={input.matplotlibrc} \
MATPLOTLIBRC={input.matplotlibrc} \
OUTPUT_DIR={output} \
OUTPUT_DIR={output} \
DETECTOR_CONFIG={wildcards.DETECTOR_CONFIG} \
python {input.script}
python {input.script}
"""
"""
This diff is collapsed.
Click to expand it.
benchmarks/ecal_gaps/config.yml
+
3
−
3
View file @
382552a9
...
@@ -4,7 +4,7 @@ sim:ecal_gaps:
...
@@ -4,7 +4,7 @@ sim:ecal_gaps:
script
:
script
:
-
mkdir -p $LOCAL_DATA_PATH/input
-
mkdir -p $LOCAL_DATA_PATH/input
-
ln -s $LOCAL_DATA_PATH/input input
-
ln -s $LOCAL_DATA_PATH/input input
-
snakemake $SNAKEMAKE_FLAGS --cache --cores 10 ecal_gaps --omit-from ecal_gaps
-
snakemake $SNAKEMAKE_FLAGS --cache --cores 10
results/epic/
ecal_gaps --omit-from ecal_gaps
bench:ecal_gaps
:
bench:ecal_gaps
:
extends
:
.det_benchmark
extends
:
.det_benchmark
...
@@ -15,7 +15,7 @@ bench:ecal_gaps:
...
@@ -15,7 +15,7 @@ bench:ecal_gaps:
-
ln -s $LOCAL_DATA_PATH/input input
-
ln -s $LOCAL_DATA_PATH/input input
-
export PYTHONUSERBASE=$LOCAL_DATA_PATH/deps
-
export PYTHONUSERBASE=$LOCAL_DATA_PATH/deps
-
pip install -r benchmarks/ecal_gaps/requirements.txt
-
pip install -r benchmarks/ecal_gaps/requirements.txt
-
snakemake $SNAKEMAKE_FLAGS --cores 8 ecal_gaps
-
snakemake $SNAKEMAKE_FLAGS --cores 8
results/epic/
ecal_gaps
collect_results:ecal_gaps
:
collect_results:ecal_gaps
:
extends
:
.det_benchmark
extends
:
.det_benchmark
...
@@ -25,5 +25,5 @@ collect_results:ecal_gaps:
...
@@ -25,5 +25,5 @@ collect_results:ecal_gaps:
script
:
script
:
-
ls -lrht
-
ls -lrht
-
mv results{,_save}/
# move results directory out of the way to preserve it
-
mv results{,_save}/
# move results directory out of the way to preserve it
-
snakemake $SNAKEMAKE_FLAGS --cores 1 --delete-all-output ecal_gaps
-
snakemake $SNAKEMAKE_FLAGS --cores 1 --delete-all-output
results/epic/
ecal_gaps
-
mv results{_save,}/
-
mv results{_save,}/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment