Skip to content

refactor(pipe): Split pipeline into core and specialized modules - #16

Merged
afermg merged 2 commits into
mainfrom
two_pipelines
Apr 30, 2026
Merged

refactor(pipe): Split pipeline into core and specialized modules#16
afermg merged 2 commits into
mainfrom
two_pipelines

Conversation

@afermg

@afermg afermg commented Apr 30, 2026

Copy link
Copy Markdown
Owner

This refactor separates the shared pipeline engine from specific segmenter implementations. Shared logic for step initialization, state management, and execution is moved to pipe_core.py, while Cellpose and BABY-specific logic are isolated in their own modules.

  • Extract shared engine and helper functions to pipe_core.py
  • Create pipe_baby.py and pipe_builder_baby.py for BABY
  • pipelines Simplify pipe.py and pipe_builder.py to focus on
  • Cellpose Support pipeline-specific post-state hooks for custom
  • metadata extraction

afermg added 2 commits April 30, 2026 16:18
This refactor separates the shared pipeline engine from specific
segmenter implementations. Shared logic for step initialization,
state management, and execution is moved to `pipe_core.py`, while
Cellpose and BABY-specific logic are isolated in their own modules.

- Extract shared engine and helper functions to `pipe_core.py`
- Create `pipe_baby.py` and `pipe_builder_baby.py` for BABY
- pipelines Simplify `pipe.py` and `pipe_builder.py` to focus on
- Cellpose Support pipeline-specific post-state hooks for custom
- metadata extraction
Clean up the module by removing unnecessary imports from pipe_core
and deleting the __all__ list to simplify the public interface.

@afermg afermg left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took me years to accept but the baby pipeline is quite different from the current standard.

@afermg
afermg merged commit e80ace7 into main Apr 30, 2026
7 checks passed
@afermg
afermg deleted the two_pipelines branch April 30, 2026 20:27
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