Skip to content

Commit

Permalink
Merge branch 'tickets/DM-29341'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed May 25, 2021
2 parents ec1a4fd + aefed32 commit 675fc7e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Copyright 2017-2019 University of Washington
Copyright 2017-2021 University of Washington
Copyright 2020 The Trustees of Princeton University
10 changes: 8 additions & 2 deletions bin/run_ci_dataset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ print_error() {

usage() {
print_error
print_error "Usage: $0 -d DATASET [-g NUM] [-h]"
print_error "Usage: $0 -d DATASET [-g NUM] [-p PATH] [-h]"
print_error
print_error "Specific options:"
print_error " -d Dataset name"
print_error " -g Middleware generation number (int)"
print_error " -p Pipeline to run (Gen 3 only)"
print_error " -h show this message"
exit 1
}

while getopts "d:g:h" option; do
while getopts "d:g:p:h" option; do
case "$option" in
d) DATASET="$OPTARG";;
g) GEN="$OPTARG";;
p) PIPE="$OPTARG";;
h) usage;;
*) usage;;
esac
Expand All @@ -60,6 +62,9 @@ fi
if [[ -n "${GEN}" ]]; then
GEN="--gen${GEN}"
fi
if [[ -n "${PIPE}" ]]; then
PIPE="--pipeline ${PIPE}"
fi
shift $((OPTIND-1))

PRODUCT_DIR=${AP_VERIFY_DIR}
Expand Down Expand Up @@ -88,6 +93,7 @@ NUMPROC=${NUMPROC:-$((sys_proc < max_proc ? sys_proc : max_proc))}
echo "Running ap_verify on ${DATASET} ${GEN}..."
ap_verify.py --dataset "${DATASET}" \
${GEN} \
${PIPE} \
--output "${WORKSPACE}" \
--processes "${NUMPROC}" \
--metrics-file "${WORKSPACE}/ap_verify.{dataId}.verify.json" \
Expand Down
5 changes: 4 additions & 1 deletion pipelines/ApVerifyWithFakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ tasks:
imageDifference:
class: lsst.pipe.tasks.imageDifference.ImageDifferenceTask
config:
# Always prefer decorrelation; may eventually become ImageDifferenceTask default
connections.fakesType: "fakes_"
transformDiaSrcCat:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
connections.fakesType: "fakes_"
diaPipe:
# TODO: how to prevent duplication with ApPipe definition?
Expand Down

0 comments on commit 675fc7e

Please sign in to comment.