Skip to content

Commit

Permalink
Clean up overrides for refcat analysis tools.
Browse files Browse the repository at this point in the history
- Don't set 'connections.data'; it's defined by a template that
  includes 'connections.refCatalog'.
- Don't include a comment that just repeats the file name.
- Set the obs-package default for photometry to the_monster, override
  in ImSim, ComCamSim, and (for now?) LATISS.
  • Loading branch information
TallJimbo committed Oct 24, 2024
1 parent 8a6286b commit b90f4a7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
4 changes: 1 addition & 3 deletions config/comCamSim/refCatObjectPhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
"""Overrides for RefCatObjectPhotometricAnalysisTask"""

config.connections.outputName = "objectTable_tract_uw_stars_20240524_match_photom"
config.connections.refCatalog = "uw_stars_20240524"
config.connections.outputName = "objectTable_tract_uw_stars_20240524_match_photom"
5 changes: 2 additions & 3 deletions config/comCamSim/refCatSourcePhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
"""comCamSim-specific overrides for RefCatSourcePhotometricAnalysisTask"""

config.connections.data = "sourceTable_visit_uw_stars_20240524_photoMatch"
config.connections.refCatalog = "uw_stars_20240524"
config.connections.outputName = "sourceTable_visit_uw_stars_20240524_match_photom"
2 changes: 2 additions & 0 deletions config/imsim/refCatObjectPhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config.connections.refCatalog = "cal_ref_cat_2_2"
config.connections.outputName = "objectTable_tract_cal_ref_cat_2_2_match_photom"
2 changes: 2 additions & 0 deletions config/imsim/refCatSourcePhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config.connections.refCatalog = "cal_ref_cat_2_2"
config.connections.outputName = "sourceTable_visit_cal_ref_cat_2_2_match_photom"
10 changes: 10 additions & 0 deletions config/latiss/refCatSourcePhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os.path
from lsst.pipe.tasks.postprocess import TransformObjectCatalogConfig

# By default loop over all the same bands that are present in the Object Table
objectConfig = TransformObjectCatalogConfig()
objectConfig.load(os.path.join(os.path.dirname(__file__), "transformObjectCatalog.py"))
config.bands = objectConfig.outputBands

config.connections.refCatalog = "the_monster_20240904"
config.connections.outputName = "sourceTable_visit_the_monster_20240904_match_photom"
2 changes: 2 additions & 0 deletions config/refCatObjectPhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config.connections.refCatalog = "the_monster_20240904"
config.connections.outputName = "objectTable_tract_the_monster_20240904_match_photom"
4 changes: 1 addition & 3 deletions config/refCatSourcePhotometricAnalysisTask.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
"""Overrides for RefCatSourcePhotometricAnalysisTask"""

config.connections.data = "sourceTable_visit_the_monster_20240904_match_photom"
config.connections.refCatalog = "the_monster_20240904"
config.connections.outputName = "sourceTable_visit_the_monster_20240904_match_photom"

0 comments on commit b90f4a7

Please sign in to comment.