[MayaVi-users] Re: [vtkusers] 3D scatter plot
Prabhu Ramachandran
prabhu_r at users.sf.net
Sat Apr 9 06:55:46 EDT 2005
>>>>> "Greg" == G P <telos888 at yahoo.com> writes:
Greg> Ok part of the problem is the data set I am using is a
Greg> combination of numbers that in some instances are type Long:
Greg> ValueError: expected int|float|non-empty sequence but got
Greg> <type 'long'>
I've attached a patch for pyvtk/common.py that "fixes" this problem.
However, this is unlikely to work when you actually read the data file
because it will use ints to specify the data in the VTK file. I
suggest that you specify the data in the form of floats or doubles.
So convert your arrays to double/float arrays and everything should
work.
cheers,
prabhu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: common.py.patch
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050409/722255c0/attachment.asc>
More information about the vtkusers
mailing list