[SciPy-user] AttributeError: 'numpy.ndarray' object has no attribute 'step'
nwagner at mecha.uni-stuttgart.de
Thu Mar 16 04:36:23 CST 2006
Arnd Baecker wrote:
> On Thu, 16 Mar 2006, Nils Wagner wrote:
>> Hi all,
>> linspace is useful for one-dimensional objects.
>> Is there something similar for surfaces ?
>> I would like to build a uniform mesh on a cube (-R,R)^3
>> I mean collocation points uniformly distributed on each side of the cube.
> What about numpy.mgrid?
> SciPy-user mailing list
> SciPy-user at scipy.net
>>> X,Y = mgrid[linspace(-0.4,0.4,10),linspace(-0.4,0.4,10)]
Traceback (most recent call last):
File "<stdin>", line 1, in ?
line 89, in __getitem__
step = key[k].step
AttributeError: 'numpy.ndarray' object has no attribute 'step'
More information about the SciPy-user