Skip to content

Refactor crop generation module as subpackage to avoid single module expanding indefinitely with added features#32

Open
wli51 wants to merge 3 commits into
WayScience:mainfrom
wli51:refactor-crop-gen
Open

Refactor crop generation module as subpackage to avoid single module expanding indefinitely with added features#32
wli51 wants to merge 3 commits into
WayScience:mainfrom
wli51:refactor-crop-gen

Conversation

@wli51

@wli51 wli51 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

The original src/virtual_stain_flow/datasets/ds_engine/crop_generator.py houses the protocol and two types of crop generating function. As more functionalities are added the single module would expand making it hard to read and maintain. So I decided to refactor the crop generation module as a sub package. Also added a new tiling crop generator.

wli51 added 3 commits June 10, 2026 09:34
…ated as a subpackage, moved crop generator protocol to its own stand aloen module and center and point-centered crop generator functions in their respective modules under the new subpackage.
…ubpackage while supporting older import signatures for compatibility
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