[Numpy-discussion] Re: reminder: put an upper bound on setuptools if you use numpy.distutils!

2023-08-31 Thread Kevin Sheppard
On Sun, Aug 21, 2022 at 6:36 PM Ralf Gommers wrote: > Hi all, > > After setuptools 65.0 was released a few days ago, all users of > numpy.distutils had their builds broken. This is already fixed in > setuptools 65.0.2 because the breakage was particularly bad. However, the > next breakage may not

[Numpy-discussion] Re: reminder: put an upper bound on setuptools if you use numpy.distutils!

2023-08-31 Thread Ralf Gommers
On Thu, Aug 31, 2023 at 6:39 PM Kevin Sheppard wrote: > > > On Sun, Aug 21, 2022 at 6:36 PM Ralf Gommers > wrote: > >> Hi all, >> >> After setuptools 65.0 was released a few days ago, all users of >> numpy.distutils had their builds broken. This is already fixed in >> setuptools 65.0.2 because t

[Numpy-discussion] Re: NEP 55 - Add a UTF-8 Variable-Width String DType to NumPy

2023-08-31 Thread Stephan Hoyer
On Wed, Aug 30, 2023 at 4:25 AM Ralf Gommers wrote: > > > On Tue, Aug 29, 2023 at 4:08 PM Nathan wrote: > >> The NEP was merged in draft form, see below. >> >> https://numpy.org/neps/nep-0055-string_dtype.html >> > > This is a really nice NEP, thanks Nathan! I see that questions and > constructi

[Numpy-discussion] Find location of slice in it's base

2023-08-31 Thread Dom Grigonis
Hi everyone, I am working with shared arrays and their slices. And trying to subclass ndarray in such way so that they remap to memory on unpickling. I am using package SharedArray, which doesn’t micro-manage memory locations, but rather stores the whole map via shm using unique name. One issue

[Numpy-discussion] Re: Find location of slice in it's base

2023-08-31 Thread Aaron Meurer
In principle this can be reconstructed from the strides, shape, and base memory address (a.ctypes.data) of the view and base arrays. However, not all views can be reconstructed using slices alone, for example, views from reshape operations or stride tricks. I don't know if it's possible to just con

[Numpy-discussion] Re: Find location of slice in it's base

2023-08-31 Thread Dom Grigonis
I am looking for something that would work for stride tricks too. Essentially, any possible view. > On 31 Aug 2023, at 23:03, Aaron Meurer wrote: > > In principle this can be reconstructed from the strides, shape, and > base memory address (a.ctypes.data) of the view and base arrays. > However,

[Numpy-discussion] Re: Find location of slice in it's base

2023-08-31 Thread Robert Kern
On Thu, Aug 31, 2023 at 3:25 PM Dom Grigonis wrote: > Hi everyone, > > I am working with shared arrays and their slices. And trying to subclass > ndarray in such way so that they remap to memory on unpickling. I am using > package SharedArray, which doesn’t micro-manage memory locations, but > ra

[Numpy-discussion] Re: Find location of slice in it's base

2023-08-31 Thread Dom Grigonis
Thank you, sounds just what I need. Will work on this in due time. > On 1 Sep 2023, at 00:38, Robert Kern wrote: > > On Thu, Aug 31, 2023 at 3:25 PM Dom Grigonis > wrote: > Hi everyone, > > I am working with shared arrays and their slices. And trying to subclass