Consolidate post_processing/ and post_processor/ directory duplication #38
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cleanup needed
There are two directories that handle post-processing work:
src/post_processing/(21 KB across 2 files)post_processor.py(21 KB)pull_compensation.py(21 KB)src/post_processor/(8 KB across 2 files)__init__.py(empty)physical_optimizer.py(8 KB)The naming difference (one underscore between words) makes it look like a
typo, but the contents overlap:
post_processing/post_processor.pydoes post-processingpost_processor/physical_optimizer.pydoes post-processingA new contributor trying to find "where do pull-compensation and physical
optimization live?" has to grep both directories to figure it out.
Proposed resolution
Audit the imports of these modules across the codebase, then pick one
canonical layout:
post_processing/is canonical (older, more code). Movephysical_optimizer.pyinto it aspost_processing/physical_optimizer.py.Delete the empty
post_processor/.post_processor/is canonical (newer, cleaner). Movepost_processor.pyandpull_compensation.pyinto it, renamepost_processor.pytopost_processor.py(or merge withphysical_optimizer.pyif they overlap).post_processing/withpipeline.pyfor the orchestrator,pull_compensation.py,physical_optimizer.py).Recommend Option C with a clear directory-level docstring describing
ownership of each file.
Acceptance
from post_processingandfrom post_processorreturnsresults only from the canonical directory.