103 task add Stroke model#120
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
==========================================
- Coverage 98.63% 98.16% -0.47%
==========================================
Files 19 19
Lines 1097 1145 +48
==========================================
+ Hits 1082 1124 +42
- Misses 15 21 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Asanto32
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #103
Summary
Adds a
Strokedataclass tomodels.pyfor Alphabet and DSYM tasks, following theLineSegmentpattern for Trails. UpdatesGridCellto own astrokes: List[Stroke]list for cell-level feature aggregation.Changes
Strokedataclass withpointsandline_numberas required fields; computed features (duration,distance,mean_speed, etc.) default to0.0/empty and will be populated by utility functions in Task: Add Grid model and segment_strokes utility for Alphabet/DSYM tasks #104 ~ Task: Write Alphabet Time Feature function: mean_time_per_letter #107strokes: List[Stroke] = field(default_factory=list)toGridCelltests/unit/test_stroke.pyNotes
cell_indexandcell_labelare intentionally absent fromStroke— the relationship is owned byGridCell