[Numpy-discussion] Fwd: [NumFOCUS Projects] Please Read: NumFOCUS Summit 2020

2020-11-23 Thread Ralf Gommers
FYI, this may be interesting to some maintainers. I can forward invites if you let me know what you want one. Cheers, Ralf -- Forwarded message - From: Nicole Foster Date: Sat, Nov 21, 2020 at 4:46 PM Subject: [NumFOCUS Projects] Please Read: NumFOCUS Summit 2020 To: Fiscally Sp

[Numpy-discussion] NumPy Feature Request: Function to wrap angles to range [ 0, 2*pi] or [ -pi, pi ]

2020-11-23 Thread Thomas
Hi, I have a proposal for a feature and I hope this is the right place to post this. The idea is to have a function to map any input angle to the range of [ 0, 2*pi ] or [ - pi, pi ]. There already is a function called 'unwrap' that does the opposite, so I'd suggest calling this function 'wrap'.

Re: [Numpy-discussion] NumPy Feature Request: Function to wrap angles to range [ 0, 2*pi] or [ -pi, pi ]

2020-11-23 Thread Nathaniel Smith
How would this proposed function compare to using the modulo operator, like 'arr % (2*pi)'? On Mon, Nov 23, 2020, 16:13 Thomas wrote: > Hi, > > I have a proposal for a feature and I hope this is the right place to post > this. > > The idea is to have a function to map any input angle to the rang