[Numpy-discussion] next NumPy Newcomers' Hour - 12 pm UTC

2022-11-30 Thread Inessa Pawson
Our next Newcomers' Hour will be held tomorrow, December 1st, at 12 pm UTC. Stop by to ask questions or just to say hi. To add to the meeting agenda the topics you’d like to discuss, follow the link: https://hackmd.io/3f3otyyuTte3FU9y3QzsLg?both Join the meeting via Zoom: https://us06web.zoom.us/

[Numpy-discussion] Re: Adding bit_count ufunc

2022-11-30 Thread Ralf Gommers
On Fri, Nov 25, 2022 at 9:55 PM Serge Guelton wrote: > On Fri, Nov 25, 2022 at 08:09:02PM +0100, Sebastian Berg wrote: > > Thanks for bringing this up again. The Python method exists and it > > seems like relatively basic functionality. > > > > Overall, I am slightly in favor of adding the ufunc

[Numpy-discussion] Re: Expanding support in testing for external collections.Sequence objects

2022-11-30 Thread Ralf Gommers
On Wed, Nov 30, 2022 at 7:10 PM Marko Pacak wrote: > Hi Ralf, thx for replying to this. > > > I'd prefer to tell users to use `np.asarray()` on their inputs instead. > > How would you do that? Through a warning in the test suite? Or document it > somewhere? > The docstring for array_equal should

[Numpy-discussion] Re: Expanding support in testing for external collections.Sequence objects

2022-11-30 Thread Marko Pacak
Hi Ralf, thx for replying to this. > I'd prefer to tell users to use `np.asarray()` on their inputs instead. How would you do that? Through a warning in the test suite? Or document it somewhere? ___ NumPy-Discussion mailing list -- numpy-discussion@py

[Numpy-discussion] Re: Behavior of round(array)

2022-11-30 Thread einstein . edison
Hi Sebastian, all, I’d lean towards an error too, given that the invariants implied by the Python implementation clearly aren‘t met. No strong opinions though. Best regards, Hameer Abbasi Von meinem iPhone gesendet > Am 30.11.2022 um 18:36 schrieb Sebastian Berg : > > Hi all, > > there is a

[Numpy-discussion] Behavior of round(array)

2022-11-30 Thread Sebastian Berg
Hi all, there is a discussion about how `round(array)` should behave in: https://github.com/numpy/numpy/issues/6248 There is some discussion about object arrays which should probably be fixed for `around()` in that ago. Otherwise, the is the question what to do about the fact that: * round

[Numpy-discussion] Re: Formally accept NEP 51: Changing the Representation of NumPy Scalars

2022-11-30 Thread Sebastian Berg
On Tue, 2022-11-29 at 14:51 -0700, Aaron Meurer wrote: > On Fri, Nov 25, 2022 at 9:36 AM Sebastian Berg > wrote: > > > > Hi all, > > > > I would like to formally propose accepting NEP 51.  Without any > > concern > > voiced, we will consider it accepted within 7 days. > > > > * Clearly we ca

[Numpy-discussion] Re: Expanding support in testing for external collections.Sequence objects

2022-11-30 Thread Ralf Gommers
On Wed, Nov 30, 2022 at 10:24 AM Matti Picus wrote: > > On 30/11/22 05:47, Stefan van der Walt wrote: > > On Tue, Nov 29, 2022, at 07:21, i...@markopacak.com wrote: > >> The debate is whether np.testing.asset_equal should support > >> collections.Sequence objects. > > assert list(sequence1) == li

[Numpy-discussion] Re: Expanding support in testing for external collections.Sequence objects

2022-11-30 Thread Matti Picus
On 30/11/22 05:47, Stefan van der Walt wrote: On Tue, Nov 29, 2022, at 07:21, i...@markopacak.com wrote: The debate is whether np.testing.asset_equal should support collections.Sequence objects. assert list(sequence1) == list(sequence2) should do the trick, and also handles int vs float and n