Re: [Numpy-discussion] Changing MaskedArray.squeeze() to never return masked

2017-08-10 Thread Benjamin Root
Yes, that is the change I am thinking of. And yes, it hasn't happened yet. But, it has been set to warn for a few years now, and there was a lot of controversy over it when it was first proposed. That said, I do think the way it was handled made sense, and it is a good model to follow for these typ

Re: [Numpy-discussion] Changing MaskedArray.squeeze() to never return masked

2017-08-10 Thread Allan Haldane
On 07/18/2017 09:52 AM, Benjamin Root wrote: > This sort of change seems very similar to the np.diag() change a few years > ago. Are there lessons we could learn from then that we could apply to here? > > Why would the returned view not be a masked array? > > Ben Root I am in favor of the propos

Re: [Numpy-discussion] Changing MaskedArray.squeeze() to never return masked

2017-07-18 Thread Benjamin Root
This sort of change seems very similar to the np.diag() change a few years ago. Are there lessons we could learn from then that we could apply to here? Why would the returned view not be a masked array? Ben Root On Tue, Jul 18, 2017 at 9:37 AM, Eric Wieser wrote: > When using ndarray.squeeze,