Skip to content

Clarify Pipeline __getitem__ and apply step handling#268

Open
taimoorsohail wants to merge 1 commit into
ACCESS-Community-Hub:developfrom
taimoorsohail:ts/fix-getitem-inconsistency-vs-apply
Open

Clarify Pipeline __getitem__ and apply step handling#268
taimoorsohail wants to merge 1 commit into
ACCESS-Community-Hub:developfrom
taimoorsohail:ts/fix-getitem-inconsistency-vs-apply

Conversation

@taimoorsohail

Copy link
Copy Markdown

Summary

This updates Pipeline.__getitem__ and Pipeline.apply() so they handle pipeline step types consistently and fail with clearer errors when a step cannot be applied to an already-retrieved sample.

What changed

  • Allows Operation and PipelineBranchPoint steps in the post-source __getitem__ path.
  • Runs PipelineStep instances via run() and Operation instances via apply() in __getitem__.
  • Adds explicit errors when PipelineIndex is used where an already-retrieved sample is expected.
  • Improves error messages for unsupported pipeline step types.

Validation

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest -q -o addopts='' packages/pipeline/tests/test_controller
  • 34 passed, 1 warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant