Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-40210: Clean up ap_pipe and ap_verify pipelines #196

Merged
merged 5 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions pipelines/DarkEnergyCamera/ApVerify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ tasks:
class: lsst.ap.association.DiaPipelineTask
config:
doPackageAlerts: True
transformDiaSrcCat:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
contracts:
# Must re-declare contracts that cross apPipe and metrics boundary, as
# these were removed on import.
Expand Down
21 changes: 2 additions & 19 deletions pipelines/DarkEnergyCamera/ApVerifyWithFakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,5 @@ imports:
- processCcd
- location: $AP_PIPE_DIR/pipelines/DarkEnergyCamera/ProcessCcd.yaml
# Can't use $AP_PIPE_DIR/pipelines/DarkEnergyCamera/ApPipeWithFakes.yaml here
# because the changes made by that file and ../ApVerifyWithFakes.yaml are
# hard to separate.
tasks:
processVisitFakes:
class: lsst.pipe.tasks.processCcdWithFakes.ProcessCcdWithVariableFakesTask
config:
# Mirror calibrate config from DarkEnergyCamera/ProcessCcd.yaml
calibrate.photoCal.match.referenceSelection.magLimit.fluxField: i_flux
calibrate.photoCal.match.referenceSelection.magLimit.maximum: 22.0
transformDiaSrcCatWithFakes:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
connections.fakesType: parameters.fakesType
# because the changes made by that file and _ingredients/ApVerifyWithFakes.yaml
# are hard to separate.
9 changes: 0 additions & 9 deletions pipelines/HyperSuprimeCam/ApVerify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ tasks:
class: lsst.ap.association.DiaPipelineTask
config:
doPackageAlerts: True
transformDiaSrcCat:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
contracts:
# Must re-declare contracts that cross apPipe and metrics boundary, as
# these were removed on import.
Expand Down
16 changes: 2 additions & 14 deletions pipelines/HyperSuprimeCam/ApVerifyWithFakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,5 @@ imports:
- processCcd
- location: $AP_PIPE_DIR/pipelines/HyperSuprimeCam/ProcessCcd.yaml
# Can't use $AP_PIPE_DIR/pipelines/HyperSuprimeCam/ApPipeWithFakes.yaml here
# because the changes made by that file and ../ApVerifyWithFakes.yaml are
# hard to separate.

tasks:
transformDiaSrcCatWithFakes:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
connections.fakesType: parameters.fakesType
# because the changes made by that file and _ingredients/ApVerifyWithFakes.yaml
# are hard to separate.
9 changes: 0 additions & 9 deletions pipelines/LSSTCam-imSim/ApVerify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ tasks:
class: lsst.ap.association.DiaPipelineTask
config:
doPackageAlerts: True
transformDiaSrcCat:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
contracts:
# Must re-declare contracts that cross apPipe and metrics boundary, as
# these were removed on import.
Expand Down
16 changes: 2 additions & 14 deletions pipelines/LSSTCam-imSim/ApVerifyWithFakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,5 @@ imports:
- processCcd
- location: $AP_PIPE_DIR/pipelines/LsstCamImSim/ProcessCcd.yaml
# Can't use $AP_PIPE_DIR/pipelines/LsstCamImSim/ApPipeWithFakes.yaml here
# because the changes made by that file and ../ApVerifyWithFakes.yaml are
# hard to separate.

tasks:
transformDiaSrcCatWithFakes:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageName: 'rbResnet50-DC2'
connections.coaddName: parameters.coaddName
connections.fakesType: parameters.fakesType
# because the changes made by that file and _ingredients/ApVerifyWithFakes.yaml
# are hard to separate.
17 changes: 17 additions & 0 deletions pipelines/_ingredients/ApVerify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,24 @@ tasks:
diaPipe:
class: lsst.ap.association.DiaPipelineTask
config:
# TODO: needed for "providing bulk sample alerts to brokers"; remove once
# we have an alternative.
doPackageAlerts: True
# TODO: rbClassify and doIncludeReliability logically belong in ap_pipe, but
# having ap_pipe require manual setup of rbClassifier_data would cause too
# many problems. Move to ApPipe.yaml once either DM-38454 is implemented (and
# weights added to standard repos) or rbClassifier_data is fully integrated
# with the stack.
rbClassify:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageStorageMode: neighbor # Mode of rbResnet50-DC2
modelPackageName: rbResnet50-DC2 # Useful for non-DC2 data as well
connections.coaddName: parameters.coaddName
transformDiaSrcCat:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True # Output from rbClassify
contracts:
# Metric inputs must match pipeline outputs
# Use of ConnectionsClass for templated fields is a workaround for DM-30210
Expand Down
18 changes: 18 additions & 0 deletions pipelines/_ingredients/ApVerifyWithFakes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,25 @@ tasks:
diaPipe:
class: lsst.ap.association.DiaPipelineTask
config:
# TODO: needed for "providing bulk sample alerts to brokers"; remove once
# we have an alternative.
doPackageAlerts: True
# TODO: rbClassify and doIncludeReliability logically belong in ap_pipe, but
# having ap_pipe require manual setup of rbClassifier_data would cause too
# many problems. Move to ApPipeWithFakes.yaml once either DM-38454 is
# implemented (and weights added to standard repos) or rbClassifier_data is
# fully integrated with the stack.
rbClassifyWithFakes:
class: lsst.meas.transiNet.RBTransiNetTask
config:
modelPackageStorageMode: neighbor # Mode of rbResnet50-DC2
modelPackageName: rbResnet50-DC2 # Useful for non-DC2 data as well
connections.coaddName: parameters.coaddName
connections.fakesType: parameters.fakesType
transformDiaSrcCatWithFakes:
class: lsst.ap.association.TransformDiaSourceCatalogTask
config:
doIncludeReliability: True # Output from rbClassify
timing_transformDiaSrcCat:
class: lsst.verify.tasks.commonMetrics.TimingMetricTask
config:
Expand Down