Open GaelVaroquaux opened 13 years ago
I'd love to have a fix or workaround for this. I'm using mayavi in a demo coming up and the error messages are a big detractor from the beauty of the demo.
I am also looking for a resolution or workaround for this.
Exactly the same problem, has someone found a workaround ?
Exactly the same problem, has someone found a workaround ?
The pipeline code in Mayavi needs to be rewritten to use the new VTK pipeline design. I suspect that there is a few days work, maybe a week. Given Prabhu's workload and mine's it is a bit hard to find that time. That's why nothing is happening.
+1 for a fix for this issue.
Temporary workaround, redirect error messages to a log file:
import vtk
output=vtk.vtkFileOutputWindow()
output.SetFileName("log.txt")
vtk.vtkOutputWindow().SetInstance(output)
Confirmed with current Mayavi.
@GaelVaroquaux, @prabhuramachandran: could either of you provide a brief explanation of the underlying cause? I'm a bit lost in the VTK details.
+1 for a fix
+1 for a fix
+1 for a fix
Still present.
Still present. +1 for a fix.
I tried a few things and found another workaround.
This will print the error messages:
plt = mlab.points3d(x, y, z)
But if you set the forth parameter ("scalars") the error messages are gone.
This works fine for me:
plt = mlab.points3d(x, y, z, np.ones_like(x))
The size of the glyphs can be adjusted by using the keywords 'scale_mode' and 'scale_factor'.
I agree with solarjoe's solution. There might be something wrong with the auto scalars.
Reported by Maik Beckmann:
This code
works, but gives
where this is the emitting code in vtkExecutive.cxx in vtkExecutive::CallAlgorithm(...)
Though its reported as an error by vtk, it doesn't seem to break anything.