diff --git a/bin/make_dawn_views b/bin/make_dawn_views index 0901aa8de2c5b9043aa234df99b76767c165e2e2..279119e8ceef6fb41cbd9b79933c71921932e52f 100755 --- a/bin/make_dawn_views +++ b/bin/make_dawn_views @@ -58,6 +58,8 @@ 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() @@ -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 diff --git a/scripts/view12/generate_eps b/scripts/view12/generate_eps index c70aa7255ef38c4aa75c620592456fbe62eedf65..38ebec3c7d3ce6bcda4a52cbeb2136b57d57ba4e 100755 --- a/scripts/view12/generate_eps +++ b/scripts/view12/generate_eps @@ -18,7 +18,7 @@ tan () function print_the_help { - echo "USAGE: $0 -i <PRIM_FILE> " + echo "USAGE: $0 -i <PRIM_FILE> <slices ...> " echo " OPTIONS: " echo " -t,--tag filename tag (default: view1)" exit @@ -48,12 +48,16 @@ do shift # past argument shift # past value ;; - *) # unknown option - #POSITIONAL+=("$1") # save it in an array for later + -[a-zA-Z]*) # unknown option + POSITIONAL+=("$1") # save it in an array for later echo "unknown option $1" print_the_help shift # past argument ;; + *) # positional options + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters @@ -90,9 +94,10 @@ make_slice(){ rm "${FILE_TAG}_temp0.prim" rm "${FILE_TAG}.prim" } -for zzz in $(seq 50 50 2000) ; + +for zzz in $@ ; do - make_slice ${zzz} & + make_slice ${zzz} done wait diff --git a/scripts/view14/generate_eps b/scripts/view14/generate_eps index f89a18fa28bf36ccc80a5a112201f8d1365e07f3..dc86760e4e48da9559804264fa7e64dbc3315e34 100755 --- a/scripts/view14/generate_eps +++ b/scripts/view14/generate_eps @@ -23,7 +23,7 @@ function print_the_help { - echo "USAGE: $0 -i <PRIM_FILE> " + echo "USAGE: $0 -i <PRIM_FILE> <slices ...> " echo " OPTIONS: " echo " -t,--tag filename tag (default: view1)" exit @@ -53,12 +53,16 @@ do shift # past argument shift # past value ;; - *) # unknown option - #POSITIONAL+=("$1") # save it in an array for later + -[a-zA-Z]*) # unknown option + POSITIONAL+=("$1") # save it in an array for later echo "unknown option $1" print_the_help shift # past argument ;; + *) # positional options + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters @@ -102,7 +106,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 diff --git a/scripts/view15/generate_eps b/scripts/view15/generate_eps index bf1d772ecadfaeac8f9bf506e501c04e6d11fa48..b1583cf48bae49918c7edad03814c0d75ac575d3 100755 --- a/scripts/view15/generate_eps +++ b/scripts/view15/generate_eps @@ -23,7 +23,7 @@ function print_the_help { - echo "USAGE: $0 -i <PRIM_FILE> " + echo "USAGE: $0 -i <PRIM_FILE> <slices ...> " echo " OPTIONS: " echo " -t,--tag filename tag (default: view1)" exit @@ -53,12 +53,16 @@ do shift # past argument shift # past value ;; - *) # unknown option - #POSITIONAL+=("$1") # save it in an array for later + -[a-zA-Z]*) # unknown option + POSITIONAL+=("$1") # save it in an array for later echo "unknown option $1" print_the_help shift # past argument ;; + *) # positional options + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters @@ -104,7 +108,7 @@ make_slice(){ rm "${FILE_TAG}.prim" } -for zzz in $(seq 100 200 2000) ; +for zzz in $@ ; do make_slice ${zzz} done diff --git a/views/view12.yml b/views/view12.yml index 13316030e0f72f20640f66739089ecb0d7896ea7..b3da026ae3fe82a2328843e52cbd0709386c3d5e 100644 --- a/views/view12.yml +++ b/views/view12.yml @@ -1,7 +1,13 @@ dawn_view_12:detector: extends: .views script: - - ./bin/make_dawn_views -t view12 -d scripts/view12 -D + - ./bin/make_dawn_views -t view12 -d scripts/view12 -D -- ${SLICE} + - ls -lrth * + - ls -lrth images/* + parallel: + matrix: + - SLICE: ["100", "300", "500", "700", "900", "1100", "1300", "1500", "1700", "1900"] + view_12: stage: collect diff --git a/views/view14.yml b/views/view14.yml index de135eb04d6eb0f39594a5551ebc3505fef1406c..77b1651d1d93c8fc4e323f74c344c7a3e45d524d 100644 --- a/views/view14.yml +++ b/views/view14.yml @@ -1,7 +1,12 @@ 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} + - ls -lrth * + - ls -lrth images/* + parallel: + matrix: + - SLICE: ["100", "300", "500", "700", "900", "1100", "1300", "1500", "1700", "1900"] view_14: stage: collect diff --git a/views/view15.yml b/views/view15.yml index 8e6bd133157dd795c6e53bf09af4aadee843b3b8..9d24e940732db8ba52649d7a0668d6ad92bfe930 100644 --- a/views/view15.yml +++ b/views/view15.yml @@ -1,7 +1,12 @@ dawn_view_15:detector: extends: .views script: - - ./bin/make_dawn_views -t view15 -d scripts/view15 -D + - ./bin/make_dawn_views -t view15 -d scripts/view15 -D -- ${SLICE} + - ls -lrth * + - ls -lrth images/* + parallel: + matrix: + - SLICE: ["100", "300", "500", "700", "900", "1100", "1300", "1500", "1700", "1900"] view_15: stage: collect