Warning, /detector_benchmarks/benchmarks/material_scan/Snakefile is written in an unsupported language. File is not indexed.
0001 rule material_scan_fetch_script:
0002 output:
0003 "material_scan.py",
0004 shell: """
0005 curl -L --output {output} https://github.com/eic/epic/raw/main/scripts/subdetector_tests/material_scan.py
0006 """
0007
0008 rule material_scan:
0009 input:
0010 script="material_scan.py",
0011 output:
0012 "{DETECTOR_CONFIG}/results/material_scan.png",
0013 "{DETECTOR_CONFIG}/results/material_scan_agg.csv",
0014 "{DETECTOR_CONFIG}/results/material_scan_details.pdf",
0015 log:
0016 "{DETECTOR_CONFIG}/results/material_scan.log",
0017 shadow: "full" # avoid putting calibrations/fieldmaps to results
0018 shell: """
0019 cd {wildcards.DETECTOR_CONFIG}/results
0020 python ../../{input.script} $DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml
0021 """