Adding support to generate an svg from opcodes - #364
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #364 +/- ##
==========================================
+ Coverage 96.53% 97.13% +0.60%
==========================================
Files 10 12 +2
Lines 750 909 +159
==========================================
+ Hits 724 883 +159
Misses 26 26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| "Berkeley Blue": "#003262", | ||
| "California Gold": "#FDB515", |
Andrew Waterman (aswaterman)
left a comment
There was a problem hiding this comment.
Thanks. I didn't perform a line-by-line code review, but I'm approving on the basis that existing functionality is unaffected.
|
Can you handle the CI failures when you get a chance? |
Yes I will check it out |
|
Andrew Waterman (@aswaterman) I am pretty lost with those CI issues. It seems it cannot import matplotlib, but I do not see a designated place where the package requirements are declared for this project (e.g. a requirements.txt). |
I managed to get most of the issues out of the way, and am now working on the static type checking issues. |
Matplotlib types cannot be resolved by the linter. Matplotlib calles are ignored for type checking
everything except for codecoverage is good now. Any guidance is appreciated on this one. |
|
Christian Herber (@christian-herber-nxp) I am pretty confused myself. I clicked on the failing code-coverage test, then it started showing up as passed on the github dashboard. |
|
Anyway, it is merged now. |
|
Thanks. The whole linting and type checking was quite useful |
|
Christian Herber (@christian-herber-nxp) Andrew Waterman (@aswaterman) This PR has added a non-standard Python library dependency ( Please consider re-adding this feature in a way that still allows this script to run without dependencies |
|
Tom Aird (@tomaird) agreed, it would be best to only depend on matplotlib if this feature is invoked. |
|
Tom Aird (@tomaird): I have just submitted this: #379 |
latest output for rv64*, rv_*:
Code is far from performance optimized, but does not run long either.
Main limitation I run into is font size < 1 is not allowed with matplotlib, but I could not quickly figure out a better way than matplotlib.
Anyway, this limitation only affects tiny encodings. All the major stuff is nicely visible.