Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add interface for the viz tool by OMEinsumContractionOrders v0.9 #173

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

ArrogantGao
Copy link
Contributor

No description provided.

@ArrogantGao
Copy link
Contributor Author

ArrogantGao commented Aug 6, 2024

The usage is very similar:

julia> using OMEinsum

julia> eincode = ein"abij, jhgk, icdl, klfe -> abcdefgh"
abij, jhgk, icdl, klfe -> abcdefgh

julia> viz_eins(eincode, filename = "a.png")
ERROR: ArgumentError: Extension `LuxorTensorPlot` not loaeded, please load it first by `using LuxorGraphPlot`.
Stacktrace:
 [1] viz_eins(args::OMEinsumContractionOrders.EinCode{Char}; kwargs::@Kwargs{filename::String})
   @ OMEinsumContractionOrders ~/code/OMEinsumContractionOrders.jl/src/visualization.jl:10
 [2] viz_eins(::StaticEinCode{…}; kwargs::@Kwargs{})
   @ OMEinsum ~/code/OMEinsum.jl/src/contractionorder.jl:41
 [3] top-level scope
   @ REPL[3]:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> using LuxorGraphPlot

julia> viz_eins(eincode, filename = "a.png")

This gives
a

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.87%. Comparing base (8c07022) to head (8bf84a7).
Report is 14 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   88.88%   82.87%   -6.02%     
==========================================
  Files          14       16       +2     
  Lines        1080     1238     +158     
==========================================
+ Hits          960     1026      +66     
- Misses        120      212      +92     

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

Copy link
Collaborator

@GiggleLiu GiggleLiu left a comment

Choose a reason for hiding this comment

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

Good job!

@GiggleLiu GiggleLiu merged commit 90c85b8 into under-Peter:master Aug 6, 2024
3 of 4 checks 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.

3 participants