Le 01/02/2012 21:09, Benjamin Root a écrit :
> I can't reproduce this bug with the latest numpy from github master. 
> Perhaps it has been fixed by now?
Hi,

I've no idea what's going on, but here is my $0.02 contribution. I
reproduced the bug (numpy 1.5.1) with a rather minimal script. See attached.

Best,
Pierre
#!/usr/bin/python
# -*- coding: UTF-8 -*-
""" Follow-up about Martin Groszhauser issue with numpy.ma
-> bug reproduction
"""

from __future__ import division, print_function
import numpy as np

# Simple 3D Masked array:
a = np.ma.arange(27).reshape(3,3,3)
a[1,0,0] = np.ma.masked # if commented out, no Error

sp4d = np.tile(a, (4, 1, 1, 1)) # if commented out, also no Error

a/100. #raises ValueError: invalid return array shape
# np.__version__ == '1.5.1' (Debian testing)


_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to