Skip to content
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
1 change: 1 addition & 0 deletions changes/239.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the deprecated ``Step.__call__`` method.
9 changes: 0 additions & 9 deletions src/stpipe/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import gc
import os
import sys
import warnings
from collections.abc import Sequence
from contextlib import contextmanager, suppress
from functools import partial
Expand Down Expand Up @@ -654,14 +653,6 @@ def set_skipped(model):

return step_result

def __call__(self, *args):
warnings.warn(
"Step.__call__ is deprecated. It is equivalent to Step.run "
"and is not recommended.",
UserWarning,
)
return self.run(*args)

def finalize_result(self, result, reference_files_used):
"""
Hook that allows subclasses to set mission-specific metadata on each
Expand Down
Loading