FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix `@planar` backend and allocator insertion by lkdvos · Pull Request #505 · QuantumKitHub/TensorKit.jl · GitHub

Fix @planar backend and allocator insertion - #505

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

lkdvos merged 1 commit into
mainfrom
fix/planar-backend-insertion

Conversation

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 Bot commented Aug 12, 2026 •
edited
Loading

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL