[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: 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: 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] 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-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 wan

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

2024-12-19 Thread Andrew Nelson via NumPy-Discussion
esentation by doing the following: ``` dx = (x0 + h) - x0 ``` Or is there a risk that the Python interpreter would prematurely optimize that to give: ``` dx = h ``` -- _ Dr. And

[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-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: 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: 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] Musllinux image bump to 1_2

2024-08-11 Thread Andrew Nelson
release. regards, Andrew. -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org

[Numpy-discussion] Re: git status

2024-08-04 Thread Andrew Nelson
My git config is: [remote "origin"] url = https://github.com/andyfaff/numpy.git fetch = +refs/heads/*:refs/remotes/origin/* [remote "numpy"] url = https://github.com/numpy/numpy.git fetch = +refs/heads/*:refs/remotes/numpy/* [branch "main"] remote =

[Numpy-discussion] Re: git status

2024-08-04 Thread Andrew Nelson
On Mon, 5 Aug 2024 at 10:34, Charles R Harris wrote: > > On Sun, Aug 4, 2024 at 4:25 PM Andrew Nelson wrote: > >> Hi all, >> for some reason my fork has got way out of date and is missing commits >> from back to April. I'm not sure if my fork got messed up, or w

[Numpy-discussion] git status

2024-08-04 Thread Andrew Nelson
Hi all, for some reason my fork has got way out of date and is missing commits from back to April. I'm not sure if my fork got messed up, or whether the numpy repo history has been affected. Is anyone else experiencing problems? -- _ Dr. Andrew N

[Numpy-discussion] Re: Original seed of a BitGenerator

2024-08-02 Thread Andrew Nelson
> > >> >> - the seed/SeedSequence that was used to construct the BitGenerator >> > > >>> rng = np.random.default_rng() > >>> rng.bit_generator.seed_seq > SeedSequence( > entropy=186013007116029215180532390504704448637, > ) > > In some older versions of numpy, the attribute was semi-private as >

[Numpy-discussion] Original seed of a BitGenerator

2024-08-01 Thread Andrew Nelson
, but it would sure be nice to figure out how to replicate the BitGenerator without having to do that. I'm thinking of something like: ``` rng = np.random.default_rng(190828902908) rng.uniform(size=(100,)) # 190828902908 print(rng.initial_seed) ``` -- _

[Numpy-discussion] Re: Windows 11 arm64 wheel

2024-07-11 Thread Andrew Nelson
On Thu, Jul 11, 2024, 22:08 slobodan.miletic--- via NumPy-Discussion < numpy-discussion@python.org> wrote: > Hi, > > I am writing on behalf of my team from Endava company. Our task is to work > with opensource community, and setup multiple applications for use on win11 > arm64 machines. > One of t

[Numpy-discussion] cp313 wheels on scientific-python-nightly-wheels/numpy

2024-05-20 Thread Andrew Nelson
Hi all, in case you weren't aware there are now cp313 numpy nightly wheels available on https://anaconda.org/scientific-python-nightly-wheels/numpy. This should help with downstream testing pipelines. A. -- _ Dr. Andrew N

[Numpy-discussion] 3.13 wheels

2024-05-13 Thread Andrew Nelson
I'm not sure if we've discussed this yet. I propose we start making nightly wheels for cp313 just after numpy2.0 gets officially released. That way there's no churn in the wheel infra. Note that there's already a 3.13dev job in CI. ___ NumPy-Discussion ma

[Numpy-discussion] Re: Change in numpy.percentile

2023-10-09 Thread Andrew Nelson
On Mon, 9 Oct 2023 at 23:50, Matthew Brett wrote: > Hi, > > On Mon, Oct 9, 2023 at 11:49 AM Andrew Nelson wrote: > Could you say more about why you consider: > np.mean(x, dropna=True) > to be less clear in intent than: > np.nanmean(x) > ? Is it just that someone could

[Numpy-discussion] Re: Change in numpy.percentile

2023-10-09 Thread Andrew Nelson
On Mon, 9 Oct 2023 at 20:34, wrote: > Surely you can do this for all functions of eg.nan*. Why separate them is > the only thing that distinguishes them. Setting the parameter seems to be > more handy and user-friendly. Well for me it's seems better to do it right > away in NumPy 2.0 > I think

[Numpy-discussion] Re: Change in numpy.percentile

2023-10-09 Thread Andrew Nelson
On Mon, 9 Oct 2023 at 16:36, Jerome Kieffer wrote: > On Fri, 06 Oct 2023 19:17:22 - > norbertpiotraduc...@gmail.com wrote: > > > Hi, > > I have an idea to change the numpy.percentile. Think numpy.percentile > and numpy.nanpercentyl are the same features, and the only difference is > that nump

[Numpy-discussion] Re: welcome Andrew Nelson to the NumPy maintainers team

2023-08-21 Thread Andrew Nelson
On Mon, 21 Aug 2023 at 18:39, Ralf Gommers wrote: > Hi all, > > On behalf of the steering council, I am very happy to announce that Andrew > is joining the Maintainers team. Andrew has been contributing to our CI > setup in particular for the past year, and has contributed for example the > Cirru

[Numpy-discussion] Re: Cirrus testing

2023-08-16 Thread Andrew Nelson
On Wed, Aug 16, 2023, 23:48 Benjamin Root wrote: > With regards to scheduling wheel builds (and this may already be > completely obvious), but numpy should consider a scheduled build time that > comes reasonably before scipy's scheduled build time so that there is a > quicker turn-around time wit

[Numpy-discussion] Re: Cirrus testing

2023-08-15 Thread Andrew Nelson
On Wed, 16 Aug 2023 at 10:51, Andrew Nelson wrote: > There's a scipy issue on this that discusses how to reduce usage, > https://github.com/scipy/scipy/issues/19006. > > Main points: > > - at the moment CI is run on PR and on Merge. Convert to only running on > PR comm

[Numpy-discussion] Re: Cirrus testing

2023-08-15 Thread Andrew Nelson
There's a scipy issue on this that discusses how to reduce usage, https://github.com/scipy/scipy/issues/19006. Main points: - at the moment CI is run on PR and on Merge. Convert to only running on PR commits. I've just submitted a PR to do this for numpy. - add a manual trigger. Simple to achieve

[Numpy-discussion] xp.asarray semantics

2023-08-06 Thread Andrew Nelson
The array-api documentation ( https://data-apis.org/array-api/latest/API_specification/generated/array_api.asarray.html#array_api.asarray) for `asarray` has a copy keyword, the numpy version doesn't. Is there a plan to add such a keyword to no.asarray? I guess this is part of a general question,

[Numpy-discussion] Re: Precision changes to sin/cos in the next release?

2023-05-31 Thread Andrew Nelson
What is the effect of these changes for transcendental functions in the complex plane? ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/list

[Numpy-discussion] Re: CI: testing of musllinux

2022-12-21 Thread Andrew Nelson
On Wed, 21 Dec 2022 at 20:40, Matti Picus wrote: > Maybe we should have a scientific-python wide discussion of what > platforms we wish to support, like NEP 29 for python versions. The NEP > should include some mechanism for adding new platforms. It doesn't make > sense to me to be testing someth

[Numpy-discussion] Re: CI: testing of musllinux

2022-12-20 Thread Andrew Nelson
On Wed, 21 Dec 2022 at 07:29, Andrew Nelson wrote: > In https://github.com/scipy/scipy/issues/17630 we're seeing some issues > (amongst others) with the scipy test suite that uses numpy==1.24.0 on > musllinux. > > I was wondering if numpy would like to add a musllinux CI entr

[Numpy-discussion] CI: testing of musllinux

2022-12-20 Thread Andrew Nelson
akin to https://github.com/scipy/scipy/blob/main/ci/cirrus_general_ci.yml be created. It's relatively easy to do with cirrus-ci. I can make the PR if there is appetite. _ Dr. And

[Numpy-discussion] Re: Representation of NumPy scalars

2022-09-08 Thread Andrew Nelson
On Thu, 8 Sept 2022, 19:42 Sebastian Berg, wrote: > > TL;DR: NumPy scalars representation is e.g. `34.3` instead of > `float32(34.3)`. So the representation is missing the type > information. What are your thoughts on changing that? > From the Python documentation on repr: >From the Python

[Numpy-discussion] aarch64 wheels on github actions

2022-08-06 Thread Andrew Nelson
ested). I would expect numpy wheels to take less time to build. I think it would be a relatively minor modification of the .github/workflows/wheels script. cheers, Andrew. -- _ Dr. Andrew N

[Numpy-discussion] Re: Performance mystery

2022-01-18 Thread Andrew Nelson
Might be a 'warmup' of the timeit module? ___ 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.org/ Member address

[Numpy-discussion] Re: Code formatters

2021-11-22 Thread Andrew Nelson
Is there a way to figure out which files are not touched by any open PR? That way numpy might be able to do a lot more than an incremental code alignment. ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to num

[Numpy-discussion] Re: Python 3.10 update

2021-10-18 Thread Andrew Nelson
On Tue, 19 Oct 2021 at 09:41, Matthew Brett wrote: > > Is it possible you have a funny option in a pytest configuration file > somewhere? > Thanks for the tip. Yes, I had a directory called test in the CWD, which probably confused things. The tests run now. Sorry for the noise. _

[Numpy-discussion] Re: Python 3.10 update

2021-10-18 Thread Andrew Nelson
I realised that I hadn't installed hypothesis. Now things are a little different (the number of tests detected), but still not working: ``` conda create -n test -c defaults python=3.10 conda activate test pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy pip install pytest

[Numpy-discussion] Re: Python 3.10 update

2021-10-18 Thread Andrew Nelson
On Mon, 18 Oct 2021, 23:44 Charles R Harris, wrote > ``` >> > > Thanks for testing. Are you on Intel or Arm? > Intel > > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org

[Numpy-discussion] Re: Python 3.10 update

2021-10-17 Thread Andrew Nelson
On Mon, 18 Oct 2021 at 07:50, Charles R Harris wrote: > Hi All, > It would be nice if someone could test the nightly universal2 wheels for > Mac, they can be installed with > > pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple > numpy > > Chuck > Seems to pip install ok onto

[Numpy-discussion] Re: Musllinux wheels

2021-10-11 Thread Andrew Nelson
> I'd say we may perhaps want to do this, but only if and when it becomes much easier - for example once we have migrated all our wheel build infra to GitHub Actions and cibuildwheel I've been really impressed with cibuildwheel. It works well on my project, so I'd be interested to see how it goes

Re: [Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread Andrew Nelson
On Thu, 16 Sep 2021, 03:25 george trojan, wrote: > > I just wrote the following code: > > twb = scipy.optimize.fsolve(phi, tdb, args=(tdb, p, w, hd_tdb, hg_tdb), > xtol=1e-8) > tdb, p, w, hd_tdb, hg_tdb > twb.shape > print("wet-bulb temperature {:.5f} [deg K]".format(float(twb))) > > The output i

Re: [Numpy-discussion] reducing effort spent on wheel builds?

2021-07-15 Thread Andrew Nelson
> > ___ > > NumPy-Discussion mailing list > > NumPy-Discussion@python.org > > https://mail.python.org/mailman/listinfo/numpy-discussion > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] savetxt -> gzip: nondeterministic because of time stamp

2021-04-14 Thread Andrew Nelson
On Thu, 15 Apr 2021 at 07:15, Robert Kern wrote: > On Wed, Apr 14, 2021 at 4:37 PM Joachim Wuttke > wrote: > >> Regarding numpy, I'd propose a bolder measure: >> To let savetxt(fname, X, ...) store exactly the same information in >> compressed and uncompressed files, always invoke gzip with mtim

Re: [Numpy-discussion] manylinux wheels with Github Actions

2020-11-16 Thread Andrew Nelson
For my project (refnx) I solely use GH Actions to test and make wheels. In my workflow ( https://github.com/refnx/refnx/blob/master/.github/workflows/pythonpackage.yml) I make a 3.7/3.8/3.9 matrix across Linux/macOS/Windows. First of all I make the wheels for all those combos, then install the whee

Re: [Numpy-discussion] NumPy nightly wheel builds

2020-05-03 Thread Andrew Nelson
Python 3.9 beta is ~ May 18 ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] NumPy nightly wheel builds

2020-05-03 Thread Andrew Nelson
On Mon, 4 May 2020, 07:26 Charles R Harris, wrote: > Hi All, > > The NumPy "nightly" wheel builds, actually built weekly on Sunday > mornings, have moved to > https://anaconda.org/scipy-wheels-nightly/numpy/files. They can be > installed/downloaded using pip: > That's awesome, thank you. Would

Re: [Numpy-discussion] a new grant for NumPy and OpenBLAS!

2019-11-14 Thread Andrew Nelson
Well done, that's a sizeable grant and has the ability to really move things along. On Fri, 15 Nov 2019, 13:35 Stefan van der Walt, wrote: > Hi Ralf, > > On Thu, Nov 14, 2019, at 15:42, Ralf Gommers wrote: > > I'm very pleased to announce that NumPy and OpenBLAS have received a joint > grant for

Re: [Numpy-discussion] Season of Docs - welcome Anne, Maja, Brandon

2019-08-06 Thread Andrew Nelson
2] > https://developers.google.com/season-of-docs/docs/participants/project-numpy > [3] > https://developers.google.com/season-of-docs/docs/participants/project-scipy > ___ > Nu

Re: [Numpy-discussion] A minor milestone

2018-09-07 Thread Andrew Nelson
> NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > -- _ Dr. Andrew Nelson _ __

Re: [Numpy-discussion] PEP 574 - zero-copy pickling with out of band data

2018-07-02 Thread Andrew Nelson
On Tue, 3 Jul 2018 at 09:31, Charles R Harris wrote: > > ISTR that some parallel processing applications sent pickled arrays around > to different processes, I don't know if that is still the case, but if so, > no copy might be a big gain for them. > That is very much correct. One example is u

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-26 Thread Andrew Nelson
On Tue, 26 Jun 2018 at 17:12, Eric Wieser wrote: > > I don't think it should be relegated to the "officially discouraged" > ghetto of `.legacy_index` > > The way I read it, the new spelling lof that would be the explicit but not > discouraged `image.vindex[rr, cc]`. > If I'm understanding correc

Re: [Numpy-discussion] NEP 21: Simplified and explicit advanced indexing

2018-06-25 Thread Andrew Nelson
On Tue, 26 Jun 2018 at 16:24, Juan Nunez-Iglesias wrote: > > Plain indexing arr[...] should return an error for ambiguous cases. > [...] This includes every use of vectorized indexing with multiple integer > arrays. > > This line concerns me. In scikit-image, we often do: > > rr, cc = coords.T #

Re: [Numpy-discussion] Hoop jumping, and other sports

2018-02-07 Thread Andrew Nelson
Other factors hindering new contributors: 1) Being unfamiliar with git. e.g. knowing that you have to fork numpy first, then clone from your fork, then create a feature branch. That's just the """straightforward bit""". It's hell the first time you have to rebase something/correct commit messages/

Re: [Numpy-discussion] Optimisation of matrix multiplication

2018-01-29 Thread Andrew Nelson
On 30 January 2018 at 17:22, Andrew Nelson wrote: > Hi all, > I have a matrix multiplication that I'd like to optimize. > > I have a matrix `a` (dtype=complex) with shape (N, M, 2, 2). I'd like to > do the following multiplication: > > a[:, 0] @ a[:, 1] @ ...

[Numpy-discussion] Optimisation of matrix multiplication

2018-01-29 Thread Andrew Nelson
d M>=2. So for each row do M-1 matrix multiplications of 2x2 matrices. The output should have shape (N, 2, 2). What would be the best way of going about this? -- _____ Dr.

Re: [Numpy-discussion] f2py bug in numpy v1.12.0 and above?

2018-01-29 Thread Andrew Nelson
Something similar was mentioned at https://github.com/scipy/scipy/issues/8325. ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] with np.testing.assert_raises still requires nose.

2018-01-23 Thread Andrew Nelson
-1.14.0 This doesn't seem to be an issue on our travis tests, only the windows tests. Is this a bug? -- _ Dr. Andrew Nelson _ ___ NumPy-Discussion mailing list NumPy-Discu

Re: [Numpy-discussion] Understanding np.min behaviour with nan

2018-01-10 Thread Andrew Nelson
> The same warning would have been issued from the same place in each of the variations you tried. That's not the case, I tried with np.min([1, 2, 3, np.nan]) in a fresh interpreter and no warning was raised. Furthermore on my work computer (conda python3.6.2 with pip installed numpy) I can't get

Re: [Numpy-discussion] Understanding np.min behaviour with nan

2018-01-10 Thread Andrew Nelson
Further to my last message, why is the warning only raised once? ``` >>> import numpy as np >>> np.min([1, np.nan]) /Users/andrew/miniconda3/envs/dev3/lib/python3.6/site-packages/numpy/core/_methods.py:29: RuntimeWarning: invalid value encountered in reduce return umr_minimum(a, axis, None, out,

[Numpy-discussion] Understanding np.min behaviour with nan

2018-01-10 Thread Andrew Nelson
ncountered in reduce return umr_minimum(a, axis, None, out, keepdims) nan >>> np.min([1, 2, np.nan]) nan >>> np.min([np.nan, 1, 2]) nan >>> np.min([np.nan, 1]) nan Why is there a RuntimeWarning for the first example, but not the others? Is this expected beh

Re: [Numpy-discussion] Why are empty arrays False?

2017-08-19 Thread Andrew Nelson
> I think the consistency between bool([]) and bool(array([])) is worth preserving I'm with Eric Firing on this one. Empty sequences are False in Python. ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listin