Skip to content

Commit

Permalink
Bump deprecation->removal version from v26 to v27.
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Jenness <tjenness@lsst.org>
  • Loading branch information
TallJimbo and timj committed Apr 8, 2024
1 parent ff87744 commit 977d342
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/log_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def capture_logging(
task_node : `lsst.pipe.base.TaskDef` or \
`~lsst.pipe.base.pipeline_graph.TaskNode`
The task definition. Support for `~lsst.pipe.base.TaskDef` is
deprecated and will be removed after v26.
deprecated and will be removed after v27.
quantum : `~lsst.daf.butler.Quantum`
Single Quantum instance.
Expand Down Expand Up @@ -130,7 +130,7 @@ def capture_logging(
# DM-40443.
log_dataset_name = task_node.logOutputDatasetName
warnings.warn(
"Passing TaskDef instances to LogCapture is deprecatedand will not be supported after v26.",
"Passing TaskDef instances to LogCapture is deprecated and will not be supported after v27.",
FutureWarning,
find_outside_stacklevel("lsst.ctrl.mpexec"),
)
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/mpexec/quantumGraphExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def execute(self, task_node: TaskNode | TaskDef, /, quantum: Quantum) -> Quantum
task_node : `~lsst.pipe.base.TaskDef` or \
`~lsst.pipe.base.pipeline_graph.TaskNode`
Task definition structure. `~lsst.pipe.base.TaskDef` support is
deprecated and will be removed after v26.
deprecated and will be removed after v27.
quantum : `~lsst.daf.butler.Quantum`
Quantum for this execution.
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/separablePipelineExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def make_quantum_graph(
A graph builder that implements a
`~lsst.pipe.base.GraphBuilder.makeGraph` method. By default, a new
instance of `lsst.pipe.base.GraphBuilder` is used. Deprecated in
favor of ``builder_class`` and will be removed after v26.
favor of ``builder_class`` and will be removed after v27.
builder_class : `type` [ \
`lsst.pipe.base.quantum_graph_builder.QuantumGraphBuilder` ], \
optional
Expand Down Expand Up @@ -244,7 +244,7 @@ class are provided automatically (from explicit arguments to this
if builder:
warnings.warn(
"The 'builder' argument to SeparablePipelineBuilder.make_quantum_graph "
"is deprecated in favor of 'builder_class', and will be removed after v26.",
"is deprecated in favor of 'builder_class', and will be removed after v27.",
FutureWarning,
find_outside_stacklevel("lsst.ctrl.mpexec"),
)
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/simple_pipeline_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def from_pipeline(
`~collections.abc.Iterable` [ `~lsst.pipe.base.TaskDef` ]
A Python object describing the tasks to run, along with their
labels and configuration. Passing `~lsst.pipe.base.TaskDef`
objects is deprecated and will not be supported after v26.
objects is deprecated and will not be supported after v27.
where : `str`, optional
Data ID query expression that constraints the quanta generated.
bind : `~collections.abc.Mapping`, optional
Expand All @@ -283,7 +283,7 @@ def from_pipeline(
# on DM-40443.
warnings.warn(
"Passing TaskDefs to SimplePipelineExecutor.from_pipeline is deprecated "
"and will be removed after v26.",
"and will be removed after v27.",
category=FutureWarning,
stacklevel=find_outside_stacklevel("lsst.ctrl.mpexec"),
)
Expand Down
8 changes: 4 additions & 4 deletions python/lsst/ctrl/mpexec/singleQuantumExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _conform_task_def(self, task_node: TaskDef | TaskNode) -> TaskNode:
if isinstance(task_node, TaskDef):
warnings.warn(
"Passing TaskDef to SingleQuantumExecutor methods is deprecated "
"and will not be supported after v26.",
"and will not be supported after v27.",
FutureWarning,
find_outside_stacklevel("lsst.ctrl.mpexec"),
)
Expand Down Expand Up @@ -334,7 +334,7 @@ def checkExistingOutputs(
task_node : `~lsst.pipe.base.TaskDef` or \
`~lsst.pipe.base.pipeline_graph.TaskNode`
Task definition structure. `~lsst.pipe.base.TaskDef` support is
deprecated and will be removed after v26.
deprecated and will be removed after v27.
limited_butler : `~lsst.daf.butler.LimitedButler`
Butler to use for querying and clobbering.
Expand Down Expand Up @@ -432,7 +432,7 @@ def updatedQuantumInputs(
task_node : `~lsst.pipe.base.TaskDef` or \
`~lsst.pipe.base.pipeline_graph.TaskNode`
Task definition structure. `~lsst.pipe.base.TaskDef` support is
deprecated and will be removed after v26.
deprecated and will be removed after v27.
limited_butler : `~lsst.daf.butler.LimitedButler`
Butler to use for querying.
Expand Down Expand Up @@ -507,7 +507,7 @@ def runQuantum(
task_node : `~lsst.pipe.base.TaskDef` or \
`~lsst.pipe.base.pipeline_graph.TaskNode`
Task definition structure. `~lsst.pipe.base.TaskDef` support is
deprecated and will be removed after v26.
deprecated and will be removed after v27.
limited_butler : `~lsst.daf.butler.LimitedButler`
Butler to use for dataset I/O.
"""
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/mpexec/taskFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def makeTask(
if isinstance(task_node, TaskDef):
# TODO: remove this block on DM-40443, along with type annotation.
warnings.warn(
"Passing TaskDef to TaskFactory is deprecated and will not be supported after v26.",
"Passing TaskDef to TaskFactory is deprecated and will not be supported after v27.",
FutureWarning,
find_outside_stacklevel("lsst.pipe.base"),
)
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def printTable(rows: list[tuple], header: tuple | None) -> None:

# TODO: remove on DM-40443.
@deprecated(
"filterTasks is deprecated in favor of filterTaskNodes, and will be removed after v26.",
version="v26.0",
"filterTasks is deprecated in favor of filterTaskNodes, and will be removed after v27.",
version="v27.0",
category=FutureWarning,
)
def filterTasks(pipeline: Pipeline, name: str | None) -> list[TaskDef]:
Expand Down

0 comments on commit 977d342

Please sign in to comment.