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-43077: Convert all tasks to use CalibrateImageTask outputs #341

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/lsst/ip/diffim/computeSpatiallySampledMetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SpatiallySampledMetricsConnections(pipeBase.PipelineTaskConnections,
doc="Input science exposure.",
dimensions=("instrument", "visit", "detector"),
storageClass="ExposureF",
name="{fakesType}calexp"
name="{fakesType}initial_pvi"
)
matchedTemplate = pipeBase.connectionTypes.Input(
doc="Warped and PSF-matched template used to create the difference image.",
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ip/diffim/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DetectAndMeasureConnections(pipeBase.PipelineTaskConnections,
doc="Input science exposure.",
dimensions=("instrument", "visit", "detector"),
storageClass="ExposureF",
name="{fakesType}calexp"
name="{fakesType}initial_pvi"
)
matchedTemplate = pipeBase.connectionTypes.Input(
doc="Warped and PSF-matched template used to create the difference image.",
Expand Down
12 changes: 6 additions & 6 deletions python/lsst/ip/diffim/getTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ class GetTemplateConnections(pipeBase.PipelineTaskConnections,
"warpTypeSuffix": "",
"fakesType": ""}):
bbox = pipeBase.connectionTypes.Input(
doc="BBoxes of calexp used determine geometry of output template",
name="{fakesType}calexp.bbox",
doc="Bounding box of exposure used determine geometry of output template.",
name="{fakesType}initial_pvi.bbox",
storageClass="Box2I",
dimensions=("instrument", "visit", "detector"),
)
wcs = pipeBase.connectionTypes.Input(
doc="WCS of the calexp that we want to fetch the template for",
name="{fakesType}calexp.wcs",
doc="WCS of the exposure that we want to fetch the template for.",
name="{fakesType}initial_pvi.wcs",
storageClass="Wcs",
dimensions=("instrument", "visit", "detector"),
)
Expand Down Expand Up @@ -437,8 +437,8 @@ class GetDcrTemplateConnections(GetTemplateConnections,
"warpTypeSuffix": "",
"fakesType": ""}):
visitInfo = pipeBase.connectionTypes.Input(
doc="VisitInfo of calexp used to determine observing conditions.",
name="{fakesType}calexp.visitInfo",
doc="VisitInfo of exposure used to determine observing conditions.",
name="{fakesType}initial_pvi.visitInfo",
storageClass="VisitInfo",
dimensions=("instrument", "visit", "detector"),
)
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ip/diffim/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NumberSciSourcesMetricConnections(
):
sources = connectionTypes.Input(
doc="The catalog of science sources.",
name="src",
name="initial_stars_footprints_detector",
storageClass="SourceCatalog",
dimensions={"instrument", "visit", "detector"},
)
Expand Down Expand Up @@ -98,7 +98,7 @@ class FractionDiaSourcesToSciSourcesMetricConnections(
"metric": "fracDiaSourcesToSciSources"}):
sciSources = connectionTypes.Input(
doc="The catalog of science sources.",
name="src",
name="initial_stars_footprints_detector",
storageClass="SourceCatalog",
dimensions={"instrument", "visit", "detector"},
)
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ip/diffim/subtractImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class SubtractInputConnections(lsst.pipe.base.PipelineTaskConnections,
doc="Input science exposure to subtract from.",
dimensions=("instrument", "visit", "detector"),
storageClass="ExposureF",
name="{fakesType}calexp"
name="{fakesType}initial_pvi"
)
sources = connectionTypes.Input(
doc="Sources measured on the science exposure; "
"used to select sources for making the matching kernel.",
dimensions=("instrument", "visit", "detector"),
storageClass="SourceCatalog",
name="{fakesType}src"
name="{fakesType}initial_stars_footprints_detector"
)
visitSummary = connectionTypes.Input(
doc=("Per-visit catalog with final calibration objects. "
Expand Down
Loading