Skip to content

Commit

Permalink
Rename outputs of isolatedStarAssociation
Browse files Browse the repository at this point in the history
After the great calibration refactor, PreSources
will always be generated in single frame processing
and have fewer rows than Sources based on a second
round of more complete detection:

    - isolated_star_cat -> isolated_star_presource_associations
    - isolated_star_sources -> isolated_star_presources
  • Loading branch information
yalsayyad committed Oct 14, 2024
1 parent f905336 commit 96f2f5e
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 18 deletions.
2 changes: 2 additions & 0 deletions pipelines/HSC/DRP-Prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ subsets:
step2b:
subset:
- isolatedStarAssociation
- analyzeMatchedPreVisitCore
- gbdesAstrometricFit
description: |
Tract-level tasks
Expand Down Expand Up @@ -119,6 +120,7 @@ subsets:
- catalogMatchTract
- refCatObjectTract
- validateObjectTableCore
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- photometricCatalogMatch
- photometricRefCatObjectTract
Expand Down
5 changes: 1 addition & 4 deletions pipelines/HSC/DRP-RC2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ tasks:
class: lsst.fgcmcal.fgcmOutputProducts.FgcmOutputProductsTask
config:
connections.cycleNumber: 4
isolatedStarAssociation:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
band_order: ['i', 'r', 'g', 'z', 'y', 'N921']
matchedVisitCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
Expand Down Expand Up @@ -179,6 +175,7 @@ subsets:
# per-tract Tasks
- consolidateObjectTable
- analyzeMatchedVisitCore
- isolatedStarSourceAssociation
- analyzeMatchedPreVisitCore
- analyzeObjectTableCore
- catalogMatchTract
Expand Down
1 change: 1 addition & 0 deletions pipelines/HSC/DRP-RC2_subset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ subsets:
- psfPhotRepStar3
- psfPhotRepStar4
- objectEpochTable
- isolatedStarSourceAssociation
description: |
Tasks that can be run together, but only after the 'step1' and 'step2'
subsets.
Expand Down
4 changes: 0 additions & 4 deletions pipelines/HSC/DRP-ci_hsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ tasks:
class: lsst.pipe.tasks.postprocess.WriteRecalibratedSourceTableTask
config:
connections.outputCatalog: source
isolatedStarAssociation:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
band_order: ['i', 'r']
matchedVisitCoreWholeSkyPlot:
class: lsst.analysis.tools.tasks.WholeSkyAnalysisTask
config:
Expand Down
4 changes: 4 additions & 0 deletions pipelines/LATISS/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ tasks:
class: lsst.analysis.tools.tasks.AssociatedSourcesTractAnalysisTask
config:
connections.outputName: matchedVisitCore
connections.sourceCatalogs: sourceTable_visit
connections.associatedSources: isolated_star_sources
connections.associatedSourcesInputName: isolated_star_sources
atools.stellarPhotometricRepeatability: StellarPhotometricRepeatability
atools.stellarPhotometricResiduals: StellarPhotometricResidualsFocalPlane
atools.stellarPhotometricResiduals.produce.plot.nBins: 80
Expand Down Expand Up @@ -213,6 +216,7 @@ subsets:
- photometricCatalogMatch
- photometricRefCatObjectTract
- validateObjectTableCore
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- analyzeAmpOffsetMetadata
# The following are from analysis_drp
Expand Down
3 changes: 2 additions & 1 deletion pipelines/LSSTComCam/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ subsets:
select partial visits that overlap that region.
step2a:
subset:
- analyzeMatchedPreVisitCore
- consolidatePreSourceTable
- consolidateVisitSummary
description: |
Expand All @@ -37,6 +36,7 @@ subsets:
TODO: Evaluate SkyCorr after intial DRP
step2b:
subset:
- analyzeMatchedPreVisitCore
- isolatedStarAssociation
- gbdesAstrometricFit
description: |
Expand Down Expand Up @@ -94,6 +94,7 @@ subsets:
- selectGoodSeeingVisits
- templateGen
# analysis_tools tasks
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- analyzeObjectTableCore
- catalogMatchTract
Expand Down
1 change: 1 addition & 0 deletions pipelines/LSSTComCam/nightly-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ subsets:
- consolidateObjectTable
- healSparsePropertyMaps
# analysis_tools tasks
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- analyzeObjectTableCore
- analyzeObjectTableExtended
Expand Down
1 change: 1 addition & 0 deletions pipelines/LSSTComCamSim/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ subsets:
- templateGen
# analysis_tools tasks
- analyzeAmpOffsetMetadata
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- analyzeObjectTableCore
- catalogMatchTract
Expand Down
1 change: 1 addition & 0 deletions pipelines/LSSTComCamSim/nightly-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ subsets:
- healSparsePropertyMaps
# analysis_tools tasks
- analyzeAmpOffsetMetadata
- isolatedStarSourceAssociation
- analyzeMatchedVisitCore
- analyzeObjectTableCore
- analyzeObjectTableExtended
Expand Down
4 changes: 3 additions & 1 deletion pipelines/_ingredients/DECam/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ tasks:
isolatedStarAssociation:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
connections.source_table_visit: preSourceTable_visit
# connections.source_table_visit: preSourceTable_visit
# connections.isolated_star_sources: isolated_star_presources
# connections.isolated_star_cat: isolated_star_presource_associations
python:
config.band_order += ["N708", "N540"]
writeRecalibratedSourceTable:
Expand Down
19 changes: 19 additions & 0 deletions pipelines/_ingredients/DRP-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,32 @@ tasks:
skyCorr:
class: lsst.pipe.tasks.skyCorrection.SkyCorrectionTask
isolatedStarAssociation:
# for global calibration and PSF estimates on preSources
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
# TODO DM-43077: delete these three overrides
connections.source_table_visit: preSourceTable_visit
connections.isolated_star_sources: isolated_star_presources
connections.isolated_star_cat: isolated_star_presource_associations
isolatedStarSourceAssociation:
# for final repeatability metrics on final source table
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
connections.source_table_visit: sourceTable_visit
connections.isolated_star_sources: isolated_star_sources
connections.isolated_star_cat: isolated_star_source_associations
finalizeCharacterization:
class: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask
config:
connections.isolated_star_cats: isolated_star_presource_associations
connections.isolated_star_sources: isolated_star_presources
gbdesAstrometricFit:
class: lsst.drp.tasks.gbdesAstrometricFit.GbdesAstrometricFitTask
fgcmBuildFromIsolatedStars:
class: lsst.fgcmcal.fgcmBuildFromIsolatedStars.FgcmBuildFromIsolatedStarsTask
config:
connections.isolated_star_cats: isolated_star_presources
connections.isolated_star_sources: isolated_star_presource_associations
fgcmFitCycle:
class: lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask
fgcmOutputProducts:
Expand Down
19 changes: 17 additions & 2 deletions pipelines/_ingredients/DRP-minimal-calibration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,23 @@ tasks:
transformSourceTable: lsst.pipe.tasks.postprocess.TransformSourceTableTask
consolidateSourceTable: lsst.pipe.tasks.postprocess.ConsolidateSourceTableTask
consolidateVisitSummary: lsst.pipe.tasks.postprocess.ConsolidateVisitSummaryTask
isolatedStarAssociation: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
finalizeCharacterization: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask
isolatedStarAssociation:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
# TODO DM-43077: Remove all three connections overrides.
# DM-43077 introduces presources to the imSim pipelines
# presource are the default catalog to match on
connections.source_table_visit: sourceTable_visit
connections.isolated_star_sources: isolated_star_sources
connections.isolated_star_cat: isolated_star_source_associations
finalizeCharacterization:
class: lsst.pipe.tasks.finalizeCharacterization.FinalizeCharacterizationTask
config:
# TODO DM-43077: Remove both connections overrides.
# DM-43077 introduces presources to the imSim pipelines
# presources are the default catalog to match on
connections.isolated_star_cats: isolated_star_source_associations
connections.isolated_star_sources: isolated_star_sources
updateVisitSummary: lsst.drp.tasks.update_visit_summary.UpdateVisitSummaryTask
makeCcdVisitTable: lsst.pipe.tasks.postprocess.MakeCcdVisitTableTask
makeVisitTable: lsst.pipe.tasks.postprocess.MakeVisitTableTask
Expand Down
4 changes: 0 additions & 4 deletions pipelines/_ingredients/HSC/DRP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ tasks:
config:
doAmpOffset: true
ampOffset.doApplyAmpOffset: true
isolatedStarAssociation:
class: lsst.pipe.tasks.isolatedStarAssociation.IsolatedStarAssociationTask
config:
band_order: ["i", "r", "z", "y", "g", "N921", "N816", "N1010", "N387", "N515"]
fgcmFitCycle:
class: lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleTask
config:
Expand Down
15 changes: 13 additions & 2 deletions tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@
"icExp",
"icExpBackground",
"icSrc",
"isolated_star_cat",
"isolated_star_sources",
"objectTable",
"objectTable_tract",
"postISRCCD",
Expand All @@ -134,6 +132,11 @@
"preSourceTable_visit",
"skyCorr",
"srcMatchFull",
# DM-43077 move 2 presource associations and friends to COMMON_OUTPUTS
"isolated_star_presource_associations",
"isolated_star_presources",
"isolated_star_source_associations",
"isolated_star_sources",
}

# LATISS common outputs, in addition to COMMON_OUTPUTS
Expand Down Expand Up @@ -176,6 +179,11 @@
"mergedForcedSource",
"mergedForcedSourceOnDiaObject",
"transmission_atmosphere_fgcm",
# DM-43077 move 2 presource associations and friends to COMMON_OUTPUTS
"isolated_star_presource_associations",
"isolated_star_presources",
"isolated_star_source_associations",
"isolated_star_sources",
}

# LSSTCam-imSim common outputs, in addition to COMMON_OUTPUTS
Expand Down Expand Up @@ -207,6 +215,9 @@
"goodSeeingVisits",
"mergedForcedSource",
"mergedForcedSourceOnDiaObject",
# TODO DM-43077: remove these two
"isolated_star_source_associations",
"isolated_star_sources",
}


Expand Down

0 comments on commit 96f2f5e

Please sign in to comment.