Skip to content

Fix @planar backend and allocator insertion - #505

Merged
lkdvos merged 1 commit into
mainfrom
fix/planar-backend-insertion
Aug 13, 2026
Merged

Fix @planar backend and allocator insertion#505
lkdvos merged 1 commit into
mainfrom
fix/planar-backend-insertion

Conversation

@lkdvos

@lkdvos lkdvos commented Aug 12, 2026

Copy link
Copy Markdown
Member

By the time the postprocessors run, _insert_planar_operations has rewritten the tensor calls to GlobalRef(TensorKit, :planar*!). TO.insertargument only matches GlobalRefs into TensorOperations, so @planar backend=... and @planar allocator=... silently dropped both arguments from the planar calls.

Adds a TensorKit-matching _insertargument, routes the @planar parser through insertplanarbackend/insertplanarallocator, and tests the expansion.

🤖 Generated with Claude Code

`_insert_planar_operations` rewrites the tensor calls to
`GlobalRef(TensorKit, :planar*!)`, which `TO.insertargument` does not
match, so `@planar backend=... ` and `@planar allocator=...` silently
dropped both arguments from the planar calls.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/planar/macros.jl 84.26% <100.00%> (+4.72%) ⬆️
src/planar/postprocessors.jl 100.00% <100.00%> (+7.54%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos
lkdvos marked this pull request as ready for review August 13, 2026 05:59
@lkdvos
lkdvos requested a review from kshyatt August 13, 2026 05:59
Comment thread test/tensors/planar.jl
@lkdvos
lkdvos merged commit e1746d5 into main Aug 13, 2026
87 checks passed
@lkdvos
lkdvos deleted the fix/planar-backend-insertion branch August 13, 2026 14:09
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.

2 participants