[Numpy-discussion] Re: Canonical way of serialising Generators

2024-10-27 Thread Andrew Nelson via NumPy-Discussion
On Mon, 28 Oct 2024 at 15:06, Andrew Nelson wrote: > Hi all, > is there a canonical way of serialising Generators > Specifically I'm interested in a safe way (i.e. no pickle) of saving/restoring Generator state via HDF5 file storage. ___ NumPy-Discussi

[Numpy-discussion] Canonical way of serialising Generators

2024-10-27 Thread Andrew Nelson via NumPy-Discussion
Hi all, is there a canonical way of serialising Generators (not via pickle). Would the following be reasonable for saving and restoring state: ``` def serialize_rng(rng): klass = rng.bit_generator.state['bit_generator'] entropy = rng.bit_generator.seed_seq.entropy return klass, entropy

[Numpy-discussion] Re: Windows 11 arm64 wheel

2024-09-24 Thread Andrew Nelson via NumPy-Discussion
> > I made the second PR for full wheel with openblas. It is reviewed, but > rejected as solution with linaro built openblas is not good enough, so I am > investigating alternate options for cross compiling openblas. > While I am working on this I have one question about the wheel without > OpenBLA

[Numpy-discussion] Re: help

2024-10-02 Thread Andrew Nelson via NumPy-Discussion
On Wed, 2 Oct 2024 at 22:09, Usha Gayatri via NumPy-Discussion < numpy-discussion@python.org> wrote: > I am working on a Jupyter notebook in Anaconda Navigator. I have done some > projects in 2021, 2022,2023 and 2024. When I run my old project which was > created in 2021. it is giving errors.I am

[Numpy-discussion] Re: Exact representable difference between for two arrays.

2024-12-19 Thread Andrew Nelson via NumPy-Discussion
On Fri, 20 Dec 2024 at 18:23, Andrew Nelson wrote: > Wow, that would be a pretty serious optimization bug to override Kahan >> summation. Are you speaking of some theoretical future version of the >> interpreter, or of the current state of things? >> > > I just wanted to know how the current inte

[Numpy-discussion] Re: Exact representable difference between for two arrays.

2024-12-19 Thread Andrew Nelson via NumPy-Discussion
> > Wow, that would be a pretty serious optimization bug to override Kahan > summation. Are you speaking of some theoretical future version of the > interpreter, or of the current state of things? > I just wanted to know how the current interpreter worked. _

[Numpy-discussion] Re: Exact representable difference between for two arrays.

2024-12-20 Thread Andrew Nelson via NumPy-Discussion
Thanks for everyone's help, I'll look into those links matti. ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python

[Numpy-discussion] Exact representable difference between for two arrays.

2024-12-19 Thread Andrew Nelson via NumPy-Discussion
Hi all, Let's assume we have two float arrays, `x0` and `h`, both of which have the same shape. Let's calculate the sum of those two arrays: ``` x1 = x0 + h ``` The true representable difference between `x1` and `x0` is: ``` dx = x1 - x0 ``` Is it also possible to get that exact representation

[Numpy-discussion] Re: Fwd: Research Opportunity: Can we monitor your projects?

2025-04-29 Thread Andrew Nelson via NumPy-Discussion
On Wed, Apr 30, 2025, 08:41 Charles R Harris via NumPy-Discussion < numpy-discussion@python.org> wrote: > Just thought I'd pass this along for discussion. > > Chuck > > -- Forwarded message - > From: > Date: Tue, Apr 29, 2025 at 4:09 PM > Subject: Research Opportunity: Can we moni

[Numpy-discussion] Re: NumPy security roadmap proposal

2025-06-13 Thread Andrew Nelson via NumPy-Discussion
On Fri, 13 Jun 2025 at 16:43, Ralf Gommers via NumPy-Discussion < numpy-discussion@python.org> wrote: > > For 2FA and repository/PyPI access, we'll start making changes soon. Note > that GitHub has recently made changes to its 2FA settings that ask for > action from many people: on https://github.

[Numpy-discussion] Re: dropping Intel x86-64 wheels for the next release?

2025-09-10 Thread Andrew Nelson via NumPy-Discussion
On Wed, Sep 10, 2025, 22:00 Charles R Harris via NumPy-Discussion < numpy-discussion@python.org> wrote: > > > I agree it would be nice to support x86_64 for about a year more, but I > don't see how we are going to do it. We may need to leave it to third > parties, as we do other "exotic" hardware

[Numpy-discussion] Have any PRs in the last week or so touched objects that are followed by ResourceTracker

2025-09-22 Thread Andrew Nelson via NumPy-Discussion
Hi all, in the last few weeks have there been any PRs that have touched objects that are followed by the Python ResourceTracker. I'm talking about things like Locks, semaphores, mutexes, etc? I'm seeing some weird behaviour in scipy CI where a test ( https://github.com/scipy/scipy/blob/main/scipy/