Add BrotherPR10ThreadLibrary class #78
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#78
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?
Context
src/embroidery_converter/thread_manager.pydefaults toDMCThreadLibrary:The SAAS service contract (
Mark/easystitch-service/docs/api.md) and ThreadCraft #11 specify Brother PR-10 color matching. There's noBrotherPR10ThreadLibraryclass.Goal
Add a
BrotherPR10ThreadLibrary(ThreadLibrary)class populated with the Brother "Polyneon" 40wt color card used by the PR-10 (79 entries per the ThreadCraft spec).Implementation
BrotherPR10ThreadLibrary(ThreadLibrary)insrc/embroidery_converter/thread_manager.py.{code: "907", name: "Pale Plum", hex: "#a89bb1"}— exactly the shape the service returns.THREAD_PALETTE_PATHin the service contract) so operators can swap catalogs without code changes.Acceptance
BrotherPR10ThreadLibrary()instantiates with 79 entries.ThreadMatcher(thread_library=BrotherPR10ThreadLibrary()).match_color("#aabbcc")returns a Brother PR-10 entry.tests/test_machine_library.pycovers the catalog.BrotherPR10ThreadLibrary.from_json(path).Blocks
Mark/easystitch-service#1—/v1/threads/resolveneeds this catalog.Mark/Kimi_Agent_Brother_10_Digitizing_App#10— palette picker is supposed to surface Brother catalog names.Notes
DMCThreadLibraryshould be preserved (other callers may depend on it).BrotherPR10ThreadLibraryis additive.BrotherPR10ThreadLibrary-shaped catalog. v1 just needs something shippable.