Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Gael Varoquaux
On Tue, Jul 12, 2011 at 12:53:32PM +, Juha Jäykkä wrote: > > I don't know: you gave only a fairly non-specific description of your > > problem. I would have to write an example to find out where things > > exactly fail. > I did attach a script. Please accept my excuses. I try to answer to May

Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Juha Jäykkä
> I don't know: you gave only a fairly non-specific description of your > problem. I would have to write an example to find out where things > exactly fail. I did attach a script. The failure occurs at the second set_active_attribute(). It does not matter what you replace my Phi with, in fact, y

Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Gael Varoquaux
On Tue, Jul 12, 2011 at 12:16:59PM +, Juha Jäykkä wrote: > > The atomic_orbital example does an isosurface on the data. Doing an > > isosurface on a flat dataset is an ill-defined operation. You probably > > want to be doing something different than an isosurface. What's your end > That does n

Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Juha Jäykkä
> The atomic_orbital example does an isosurface on the data. Doing an > isosurface on a flat dataset is an ill-defined operation. You probably > want to be doing something different than an isosurface. What's your end That does not really address the problem with set_active_attribute(). > goal? W

Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Gael Varoquaux
On Tue, Jul 12, 2011 at 11:26:41AM +, Juha Jäykkä wrote: > Now, this is unhappy: I really have 2D data, and I need to locate points on > it. I can, of course, keep doing that with the dstacked data, but I will get > every point I want, TWICE, so another solution would be preferable. The atom

Re: [MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Juha Jäykkä
> TraitError: The 'point_scalars_name' trait of a SetActiveAttribute instance > must be one of ['scalar', ''], but a value of 'angle' was > specified. This error comes from the fact that my dataset has shape (689, 797, 1) If I numpy.dstack it: Phi=numpy.dstack((Phi,Phi)) and retry, it works w

[MayaVi-users] error in atomic_orbitals.py

2011-07-12 Thread Juha Jäykkä
Hi all! I have a strange problem with the atomic_orbitals.py example. I edited the code to read in the numpy array Phi from a hdf5 file and it stopped working, saying TraitError: The 'point_scalars_name' trait of a SetActiveAttribute instance must be one of ['scalar', ''], but a value of 'angl