Skip to content
Snippets Groups Projects
Commit 64745dee authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Make view14 parallel (one slice per job)

parent 950aa602
No related branches found
No related tags found
1 merge request!170Make view12/14/15 parallel (one slice per job)
......@@ -58,8 +58,10 @@ parser.add_argument('-t', '--tag', type=str,
parser.add_argument('--timeout', type=int,
default=60,
help='Timeout in seconds')
parser.add_argument('passthrough', nargs='*')
args = parser.parse_args()
args = parser.parse_known_args()
macro = 'macro/dawn_picture.mac' if args.detector_only else 'macro/dawn_picture2.mac'
......@@ -157,7 +159,7 @@ prim_file = os.path.abspath(prim_file)
owd = os.getcwd()
os.chdir(args.dawn_dir)
subprocess.run(['pwd'])
subprocess.run(['./generate_eps', '-t', args.tag, '-i', prim_file])
subprocess.run(['./generate_eps', '-t', args.tag, '-i', prim_file] + args.passthrough)
subprocess.run(['ls', '-lrth'])
# upload the results
......
......@@ -36,7 +36,7 @@ INPUT_FILE="../../g4_0000.prim"
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
key="$1"tag
case $key in
-h|--help)
......@@ -102,7 +102,8 @@ make_slice(){
rm "${FILE_TAG}_temp0.prim"
rm "${FILE_TAG}.prim"
}
for zzz in $(seq 100 200 2000) ;
for zzz in $@ ;
do
make_slice ${zzz}
done
......
dawn_view_14:detector:
extends: .views
script:
- ./bin/make_dawn_views -t view14 -d scripts/view14 -D
- ./bin/make_dawn_views -t view14 -d scripts/view14 -D -- ${SLICE}
parallel:
matrix:
- SLICE: ["150", "200", "250", "300", "350", "400", "450", "500", "550", "600", "650", "700", "750", "800", "850", "900", "950", "1000", "1050", "1100", "1150", "1200", "1250", "1300", "1350", "1400", "1450", "1500", "1550", "1600", "1650", "1700", "1750", "1800", "1850", "1900", "1950", "2000"]
view_14:
stage: collect
......@@ -12,4 +15,3 @@ view_14:
script:
- ls -lrth *
- ls -lrth images/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment