IndexError when running the "textured gyroid shape" example
See original GitHub issueRunning this example:
vedo -r gyroid
gives me IndexError: list index out of range
error:
gyroid - A textured gyroid shape cut by a sphere from vedo import..
(/Users/matus/miniconda3/envs/3d-vis/lib/python3.9/site-packages/vedo/examples/advanced/gyroid.py)
Traceback (most recent call last):
File "/Users/matus/miniconda3/envs/3d-vis/lib/python3.9/site-packages/vedo/examples/advanced/gyroid.py", line 10, in <module>
gyr = Volume(U).isosurface(0).smoothLaplacian().subdivide()
File "/Users/matus/miniconda3/envs/3d-vis/lib/python3.9/site-packages/vedo/volume.py", line 1025, in __init__
self.mode(mode).color(c).alpha(alpha).alphaGradient(alphaGradient)
File "/Users/matus/miniconda3/envs/3d-vis/lib/python3.9/site-packages/vedo/base.py", line 1466, in color
r,g,b = colors.colorMap(x, name=col, vmin=smin, vmax=smax)
File "/Users/matus/miniconda3/envs/3d-vis/lib/python3.9/site-packages/vedo/colors.py", line 651, in colorMap
return hex2rgb(cmap[n-iv])
IndexError: list index out of range
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
film thickness ranging: Topics by Science.gov
Then, microstructure of thin films was determined using X-ray diffraction. To investigate the influence of temperature on the texture development in the Ag ......
Read more >Untitled
Famiglia asburgo albero genealogico, Mother earth india website, Phd thesis latex template dtu, Indexerror index out of range 1 python.
Read more >Untitled
And found wanting, Figure skating warm up exercises, Billy houghland, ... Fiesta mall mesa az fair, Index pivot table excel, Elsa cape template, ......
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
I am on macOS:
with
python==3.9.5
. I haven’t checked all examples, but most of them work as expected.I ran the script with the
pdb
:Here is the output:
The
iv
value seem to be the issue…Ahhh !! Right I will add a more meaningful error message…