Skip to content

Conversation

@jon-myers
Copy link
Contributor

Summary

  • Removes incorrect warning from Phrase class that compared trajectory_grid, chikari_grid, and groups_grid dimensions against instrumentation length
  • This validation was architecturally wrong - instrumentation relates to phrase_grid dimensions at the Piece level, not at the Phrase level
  • As of recent updates, trajectory_grid will have 2 dimensions for both Sitar and Sarangi instruments, independent of piece-level instrumentation

Changes

  • Removed 3 validation blocks from idtap/classes/phrase.py (lines 295-318)
  • The correct instrumentation validation exists in piece.py:426-429 for phraseGrid vs instrumentation

Test plan

  • All 409 tests pass
  • Warning count reduced from 58 to 54 (removed spurious warnings)

Closes #49

🤖 Generated with Claude Code

The Phrase class was incorrectly warning when trajectory_grid, chikari_grid,
and groups_grid dimensions didn't match instrumentation length. This
validation is architecturally wrong - instrumentation relates to phrase_grid
dimensions at the Piece level, not at the Phrase level.

As of recent updates, trajectory_grid will have 2 dimensions for both Sitar
and Sarangi instruments, independent of piece-level instrumentation.

Closes #49

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

📦 Test Package Built Successfully!

This PR has been automatically built and uploaded to TestPyPI for testing.

🔗 TestPyPI Link: https://test.pypi.org/project/idtap/

To test this version:

pip install --index-url https://test.pypi.org/simple/ idtap

✅ All tests passed and package builds successfully.

@jon-myers jon-myers merged commit 5c1e9fc into main Dec 10, 2025
1 check passed
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.

Fix incorrect trajectory_grid vs instrumentation warning in Phrase class

2 participants