Re: [Numpy-discussion] ENH: Add the function 'expand_view'

2016-01-07 Thread John Kirkham
First, off sorry for the long turnaround on responding to these questions. Below I have tried to respond to everyone's questions and comments. I have restructured the order of the messages so that my responses are a little more structured. If anybody has more thoughts or questions, please let me kn

[Numpy-discussion] ENH: Add the function 'expand_view'

2015-11-24 Thread John Kirkham
Takes an array and tacks on arbitrary dimensions on either side, which is returned as a view always. Here are the relevant features: * Creates a view of the array that has the dimensions before and after tacked on to it. * Takes the before and after arguments independent of each other and the c

Re: [Numpy-discussion] Fix masked arrays to properly edit views

2015-04-04 Thread John Kirkham
s > To: numpy-discussion@scipy.org > Message-ID: <5504cbc0.1080...@hawaii.edu> > Content-Type: text/plain; charset=windows-1252; format=flowed > >> On 2015/03/14 1:02 PM, John Kirkham wrote: >> The sample case of the issue ( >> https://github.com/numpy

[Numpy-discussion] Fix masked arrays to properly edit views

2015-03-14 Thread John Kirkham
The sample case of the issue ( https://github.com/numpy/numpy/issues/5558 ) is shown below. A proposal to address this behavior can be found here ( https://github.com/numpy/numpy/pull/5580 ). Please give me your feedback. I tried to change the mask of `a` through a subindexed view, but was unab

Re: [Numpy-discussion] Numpy where

2015-03-13 Thread John Kirkham
Hey Everyone, I felt like I should add to the mix. I added the issue ( https://github.com/numpy/numpy/issues/5679 ) to tie these options together. My main concern is that both wheres behave the same. As far as using a scalar as the first argument, it was an easy example. We could have used actu