Unknown expected types for SVGFigure parameters
See original GitHub issueThe recently released 0.3.2 has resulted in the following (truncated) traceback:
File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/viz/utils.py", line 360, in compose_view
fig = SVGFigure(width, heights[:nsvgs].sum())
File "/usr/local/miniconda/lib/python3.7/site-packages/svgutils/transform.py", line 242, in __init__
self._width = width.value
AttributeError: 'numpy.int64' object has no attribute 'value'
Looking at the docs for SVGFigure, a numeric value seems appropriate. I’m not sure what sort of object with a .value
attribute is expected to fix our invocation, so currently I’m pinning 0.3.1.
Issue introduced in #27.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Generic type parameters don't work with Union types #2984
Expected behavior. No type error should be raised, and spam s type should be recognized as str , not Unknown .
Read more >Why won't the axes on my D3 SVG figure update?
I have a simple D3 scatterplot that I switch among displaying several different attributes of my data, but while I can get the...
Read more >Test.Assert Class - YUI Library
The Assert object provides functions to test JavaScript values against known and expected results. Whenever a comparison (assertion) fails, ...
Read more >NEWS
FIXED: umxSummary works with umxSuperModel now that paths have types. ... IMPROVED: umxPower parameters ==1 for power search with fixed n ...
Read more >DNA methylation at enhancers identifies distinct breast cancer ...
Our results reveal a hitherto unknown connection between the ... in a specific segment type over the expected frequency of CpGs from the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, @mgxd. @btel to be clear, he’s working on the same project that I am.
@btel I can confirm #58 fixes the problem - thanks!