Skip to content

102 task add GridCell model#119

Merged
kimit0310 merged 4 commits into
mainfrom
102-add-gridcell-model
Mar 2, 2026
Merged

102 task add GridCell model#119
kimit0310 merged 4 commits into
mainfrom
102-add-gridcell-model

Conversation

@kimit0310
Copy link
Copy Markdown
Collaborator

@kimit0310 kimit0310 commented Feb 12, 2026

This PR resolves #102

This PR introduces GridCell model and unit tests for them to assign strokes based on centroid location, used for DSYM and Alphabet tasks.

Grid cells use half-open intervals [min, max) to avoid double-assignment on shared boundaries. The last cell in each dimension is fully inclusive [min, max].

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.63%. Comparing base (da2c270) to head (f2c46d7).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #119      +/-   ##
==========================================
+ Coverage   98.57%   98.63%   +0.05%     
==========================================
  Files          19       19              
  Lines        1054     1097      +43     
==========================================
+ Hits         1039     1082      +43     
  Misses         15       15              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@Asanto32 Asanto32 left a comment

Choose a reason for hiding this comment

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

Some small edge cases to think about + use of pydantic basemodel instead of dataclass?

Comment thread src/graphomotor/core/models.py
Comment thread src/graphomotor/core/models.py
Comment thread src/graphomotor/core/models.py
… that the outer grid boundaries will be padded at the Grid level.
Copy link
Copy Markdown
Collaborator

@Asanto32 Asanto32 left a comment

Choose a reason for hiding this comment

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

Minor discrepancy between test docstring and actual test, otherwise lgtm

Comment thread tests/unit/test_grid_cell.py
Comment thread tests/unit/test_grid_cell.py
@kimit0310 kimit0310 merged commit bd58e18 into main Mar 2, 2026
26 checks passed
@kimit0310 kimit0310 deleted the 102-add-gridcell-model branch March 2, 2026 17:10
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.

Task: Add GridCell model

2 participants