Skip to content

Commit

Permalink
Separate clustering.yaml for DC2 and RC2 cases
Browse files Browse the repository at this point in the history
- visit_detector (step1) clustering requires distinct pipetask lists for
- DC2 (LSSTCam-imsim) and RC2 (HSC) cases
- remove trailing spaces from yaml files and remove trailing empty line
  • Loading branch information
brianyanny committed Dec 22, 2023
1 parent c5e775a commit de442ec
Show file tree
Hide file tree
Showing 5 changed files with 5,288 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bps/clustering/DRP-recalibrated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
clusterAlgorithm: lsst.ctrl.bps.quantum_clustering_funcs.dimension_clustering
cluster:
visit_detector:
pipetasks: isr,inject_exposure,characterizeImage,calibrate,inject_visit,writePreSourceTable,transformPreSourceTable,writeSourceTable,transformSourceTable
pipetasks: isr,inject_exposure,characterizeImage,calibrate,inject_visit,writePreSourceTable,transformPreSourceTable
dimensions: visit,detector
equalDimensions: visit:exposure

Expand Down
12 changes: 12 additions & 0 deletions bps/clustering/HSC/DRP-RC2-clustering.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# For HSC campaigns, one uses the default clustering file
# without changes.
#
# Use it by adding:
#
# includeConfigs:
# - ${DRP_PIPE_DIR}/bps/clustering/HSC/DRP-RC2-clustering.yaml
#
# (with no outer indentation) to your BPS config file.
imports:
- $DRP_PIPE_DIR/bps/clustering/DRP-recalibrated.yaml
26 changes: 26 additions & 0 deletions bps/clustering/LSSTCam-imSim/DRP-DC2-clustering.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# For DC2 campaigns, the visit_detector (step1) clustering is modified since
# astrometric and photometric calibration are skipped in DC2
# this file swaps out two pipetasks: writePreSourceTable and
# transformPreSourceTable and replaces them with
# writeSourceTable and transformSourceTable
# for step1 clustering.
#
# Use it by adding:
#
# includeConfigs:
# - ${DRP_PIPE_DIR}/bps/clustering/LSSTCam-imSim/DRP-DC2-clustering.yaml
#
# (with no outer indentation) to your BPS config file.
#
imports:
- location: "$DRP_PIPE_DIR/bps/clustering/DRP-recalibrated.yaml"
exclude:
- visit_detector
- sourceTable

cluster:
visit_detector:
pipetasks: isr,inject_exposure,characterizeImage,calibrate,inject_visit,writeSourceTable,transformSourceTable
dimensions: visit,detector
equalDimensions: visit:exposure

0 comments on commit de442ec

Please sign in to comment.