What do you mean delete? Set to zero or NaN? You want an (N-1) dimensional
array of all the acceptable values from the N dimensional array?
Elliot
On Oct 8, 2016 5:11 PM, "Xristos Xristoou" wrote:
> any idea how to delete pixel from the raster image with
> specific range value using numpy/scipy
+1
This would really help with large data sets in certain situations.
Is there still disagreement about whether this should be included? Or are
there some minor details still? Or just lost in the shuffle?
Hopefully,
Elliot
On Wed, May 4, 2016 at 7:07 AM, Pierre Haessig
wrote:
> Hi,
>
> I do
I have a Data Oriented programing library I'm writing that uses the
Entity-Component-System model.
https://github.com/Permafacture/data-oriented-pyglet
I have initially called it Numpy-ECS but I don't know if that name is
okay. The numpy license says:
Neither the name of the NumPy Developers no
Use `random.shuffle(range(len(arr))` to make a list of indices. Use a
slices to get your 20/80. Convert to integer arrays and index your
original array with them. Use sorted on the 80% list if you need to
preserve the order.
-Elliot
On Mon, May 16, 2016 at 11:04 AM, Martin Noblia <
martin.nob.
What do you mean remove them from the array? Replace with zero or NaN?
On May 16, 2016 9:08 AM, "Florian Lindner" wrote:
> Hello,
>
> I have an array of shape (n, 2) from which I want to extract a random
> sample
> of 20% of rows. The choosen samples should be removed the original array
> and
> m
Thanks! Man, I got every one of those numbers in the wrong place...
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion
Sorry for the noob question.
On numpy 10.4.1, I am bit by this:
https://github.com/numpy/numpy/issues/4185
But it has been fixed 6 months ago:
https://github.com/numpy/numpy/issues/6740
Do I need to compile numpy to get this fix on debian sid? Would anaconda be
up to date enough?
Elliot
__
Strula, this sounds brilliant! To be clear, you're talking about
serializing the numpy array and reconstructing it in a way that's faster
than pickle? Or using shared memory and signaling array creation around
that shared memory rather than using pickle?
For what it's worth, I have used shared me
Hey Alex. Thanks. I was aware of that. However, I was simply doing `run
myscript.py` on the first input line of the Ipython shell, so I did not
expect this behaviour.
The ipython list would be a better place to ask I guess, since the
behaviour on numpy's part is to be expected. Just wondering if a
Hello,
I haven't worked hard yet to create a minimal runnable (reproduce-able)
example but I wanted to check if this sounds familiar to anyone.
I have a pretty involved program that resizes arrays in place with
arr.resize. When I run it with python it completes and gives the expected
result. Wh
Is there a clean way of importing existing C code as a vectorized numpy
func? Like, it would be awesome to use gdal in a vectorized way just with
ctypes or something.
Just something I've dreamed of that I thought I'd ask about in regards to
the GSoC.
Elliot
On Feb 8, 2016 6:03 PM, "Chris Barker"
o bad. It would be nice if the array could be resized, but it's probably
unstable to do so and there isn't much demand for it.
Thanks,
Elliot
On Sat, Feb 6, 2016 at 8:01 PM, Sebastian Berg
wrote:
> On Sa, 2016-02-06 at 16:56 -0600, Elliot Hallmark wrote:
> > Hi all,
>
Hi all,
I have a program that uses resize-able arrays. I already over-provision
the arrays and use slices, but every now and then the data outgrows that
array and it needs to be resized.
Now, I would like to have these arrays shared between processes spawned via
multiprocessing (for fast interpr
> What does "true vectorization" mean anyway?
Calling python functions on python objects in a for loop is not really
vectorized. It's much slower than people intend when they use numpy.
Elliot
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.or
David,
>I'm concluding that the .astype(np.uint8) is applied after the array is
constructed, instead of during the process.
That is how python works in general. astype is a method of an array, so
randint needs to return the array before there is something with an astype
method to call. A dtype
Fast fourier transform (fft)?
On Nov 26, 2015 9:21 AM, "Manolo MartÃnez" wrote:
> Dear all,
>
> Suppose that I have a vector with the numerical solution of a
> differential equation -- more concretely, I am working with evolutionary
> game theory models, and the solutions are frequencies of types
>What numpy version?
1.8.1
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Sebastian, in the slow virtual-env, _dotblas.so isn't there. I only have
_dummy.so
On Sat, Jun 20, 2015 at 3:02 PM, Elliot Hallmark
wrote:
> Well, here is the question that started this all. In the slow
> environment, blas seems to be there and work well, but numpy doesn't use
un 20, 2015 at 4:09 AM, Sebastian Berg
wrote:
> On Fr, 2015-06-19 at 16:19 -0500, Elliot Hallmark wrote:
> > Debian Sid, 64-bit. I was trying to fix the problem of np.dot running
> > very slow.
> >
> >
> > I ended up uninstalling numpy, installing libatlas3-base throu
Debian Sid, 64-bit. I was trying to fix the problem of np.dot running very
slow.
I ended up uninstalling numpy, installing libatlas3-base through apt-get
and re-installing numpy. The performance of dot is greatly improved! But
I can't tell from any other method whether numpy is set up correctly
20 matches
Mail list logo