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-40057: Shorten deprecation timeline per RFC-945. #153

Merged
merged 1 commit into from
Jul 23, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions python/lsst/faro/base/MatchedCatalogBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class MatchedBaseConnections(
},
# TODO: remove on DM-39854.
deprecatedTemplates={
"photoCalibName": "Deprecated in favor of visitSummary; will be removed after v27.",
"wcsName": "Deprecated in favor of visitSummary; will be removed after v27.",
"externalPhotoCalibName": "Deprecated in favor of visitSummary; will be removed after v27.",
"externalWcsName": "Deprecated in favor of visitSummary; will be removed after v27.",
"photoCalibName": "Deprecated in favor of visitSummary; will be removed after v26.",
"wcsName": "Deprecated in favor of visitSummary; will be removed after v26.",
"externalPhotoCalibName": "Deprecated in favor of visitSummary; will be removed after v26.",
"externalWcsName": "Deprecated in favor of visitSummary; will be removed after v26.",
},
):
sourceCatalogs = pipeBase.connectionTypes.Input(
Expand All @@ -78,7 +78,7 @@ class MatchedBaseConnections(
name="{photoCalibName}",
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v27."
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v26."
)
astromCalibs = pipeBase.connectionTypes.Input(
doc="WCS for the catalog.",
Expand All @@ -87,7 +87,7 @@ class MatchedBaseConnections(
name="{wcsName}",
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v27."
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v26."
)
externalSkyWcsTractCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -99,7 +99,7 @@ class MatchedBaseConnections(
dimensions=("instrument", "visit", "tract", "band"),
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalSkyWcsGlobalCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -112,7 +112,7 @@ class MatchedBaseConnections(
dimensions=("instrument", "visit", "band"),
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalPhotoCalibTractCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -124,7 +124,7 @@ class MatchedBaseConnections(
dimensions=("instrument", "visit", "tract", "band"),
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalPhotoCalibGlobalCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -137,7 +137,7 @@ class MatchedBaseConnections(
dimensions=("instrument", "visit", "band"),
multiple=True,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
skyMap = pipeBase.connectionTypes.Input(
doc="Input definition of geometry/bbox and projection/wcs for warped exposures",
Expand Down Expand Up @@ -194,24 +194,24 @@ class MatchedBaseConfig(
doApplyExternalSkyWcs = pexConfig.Field(
doc="Whether or not to use the external wcs.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
useGlobalExternalSkyWcs = pexConfig.Field(
doc="Whether or not to use the global external wcs.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
doApplyExternalPhotoCalib = pexConfig.Field(
doc="Whether or not to use the external photoCalib.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
useGlobalExternalPhotoCalib = pexConfig.Field(
doc="Whether or not to use the global external photoCalib.",
dtype=bool,
default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)


Expand Down Expand Up @@ -239,14 +239,14 @@ def run(
# TODO: remove these arguments on DM-39854.
if doApplyExternalPhotoCalib is not None:
warnings.warn(
"The doApplyExternalPhotoCalib argument is deprecated and will be removed after v27.",
"The doApplyExternalPhotoCalib argument is deprecated and will be removed after v26.",
category=FutureWarning, stacklevel=find_outside_stacklevel("lsst.faro"),
)
else:
doApplyExternalPhotoCalib = False
if doApplyExternalSkyWcs is not None:
warnings.warn(
"The doApplyExternalSkyWcs argument is deprecated and will be removed after v27.",
"The doApplyExternalSkyWcs argument is deprecated and will be removed after v26.",
category=FutureWarning, stacklevel=find_outside_stacklevel("lsst.faro"),
)
doApplyExternalSkyWcs = False
Expand Down
28 changes: 14 additions & 14 deletions python/lsst/faro/measurement/DetectorMeasurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class DetectorMeasurementConnections(
"externalWcsName": "gbdesAstrometricFit",
},
deprecatedTemplates={
"photoCalibName": "Deprecated in favor of visitSummary; will be removed after v27.",
"externalPhotoCalibName": "Deprecated in favor of visitSummary; will be removed after v27.",
"wcsName": "Deprecated in favor of visitSummary; will be removed after v27.",
"externalWcsName": "Deprecated in favor of visitSummary; will be removed after v27.",
"photoCalibName": "Deprecated in favor of visitSummary; will be removed after v26.",
"externalPhotoCalibName": "Deprecated in favor of visitSummary; will be removed after v26.",
"wcsName": "Deprecated in favor of visitSummary; will be removed after v26.",
"externalWcsName": "Deprecated in favor of visitSummary; will be removed after v26.",
},
):

Expand All @@ -67,15 +67,15 @@ class DetectorMeasurementConnections(
storageClass="Wcs",
name="{wcsName}",
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v27."
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v26."
)
photoCalib = pipeBase.connectionTypes.Input(
doc="Photometric calibration object.",
dimensions=("instrument", "visit", "detector", "band"),
storageClass="PhotoCalib",
name="{photoCalibName}",
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v27."
deprecated="Deprecated in favor of visitSummary and already ignored; will be removed after v26."
)
externalSkyWcsTractCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -86,7 +86,7 @@ class DetectorMeasurementConnections(
storageClass="ExposureCatalog",
dimensions=("instrument", "visit", "tract"),
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalSkyWcsGlobalCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -98,7 +98,7 @@ class DetectorMeasurementConnections(
storageClass="ExposureCatalog",
dimensions=("instrument", "visit"),
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalPhotoCalibTractCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -109,7 +109,7 @@ class DetectorMeasurementConnections(
storageClass="ExposureCatalog",
dimensions=("instrument", "visit", "tract"),
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
externalPhotoCalibGlobalCatalog = pipeBase.connectionTypes.Input(
doc=(
Expand All @@ -121,7 +121,7 @@ class DetectorMeasurementConnections(
storageClass="ExposureCatalog",
dimensions=("instrument", "visit"),
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of visitSummary; will be removed after v27."
deprecated="Deprecated in favor of visitSummary; will be removed after v26."
)
measurement = pipeBase.connectionTypes.Output(
doc="Per-detector measurement.",
Expand Down Expand Up @@ -160,24 +160,24 @@ class DetectorMeasurementConfig(
doApplyExternalSkyWcs = pexConfig.Field(
doc="Whether or not to use the external wcs.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
useGlobalExternalSkyWcs = pexConfig.Field(
doc="Whether or not to use the global external wcs.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
doApplyExternalPhotoCalib = pexConfig.Field(
doc="Whether or not to use the external photoCalib.", dtype=bool, default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)
useGlobalExternalPhotoCalib = pexConfig.Field(
doc="Whether or not to use the global external photoCalib.",
dtype=bool,
default=False,
# TODO: remove on DM-39854.
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v27."
deprecated="Deprecated in favor of the visitSummary connection; will be removed after v26."
)


Expand Down