Skip to content

Commit

Permalink
fix: run celeritas loop over configs
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Nov 25, 2024
1 parent 332be92 commit 9c048f4
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/celeritas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ jobs:
network_types: "none"
setup: install/bin/thisepic.sh
run: |
# convert to gdml, but with sensitive detectors included
scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${config}.xml --output ${config}.gdml
# create celeritas input file from template
cat celeritas.json | envsubst > ${config}.json
# run celeritas
celer-g4 ${config}.json
IFS=, read -a configs <<< "${{inputs.detector_configs}}"
for config in ${configs[@]} ; do
echo "::group::${config}" ;
# convert to gdml, but with sensitive detectors included
scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${config}.xml --output ${config}.gdml
# create celeritas input file from template
cat celeritas.json | envsubst > ${config}.json
# run celeritas
celer-g4 ${config}.json
echo "::endgroup::" ;
done

0 comments on commit 9c048f4

Please sign in to comment.