Re: [Numpy-discussion] Tensor Typing presentation and discussion on Wednesday! (As part of the NumPy Community Meeting)

2021-06-08 Thread Juan Nunez-Iglesias
Hello! Any chance this could be recorded for those of us in useless time zones? 
😂 

On Mon, 7 Jun 2021, at 6:03 PM, Sebastian Berg wrote:
> Hi all,
> 
> There will be a NumPy Community meeting Wednesday June 9th at
> 20:00 UTC.
> 
> This meeting will be dedicated to a presentation by Matthew and Pradeep
> about typing arrays.
> 
> The title is:  "Better types for numerical computing - arrays generic
> in dtype and shape"
> 
> Abstract: An overview of why more detailed types for arrays would be
> awesome, the work being done to enable those types in PEP 646, and what
> the future of this effort could look like.
> 
> 
> If you are interested in typing and/or missed out on the Python typing
> summit, this will be a perfect opportunity to join and discuss better
> typing of NumPy arrays!
> 
> 
> Details on how to join can be found in the usual meeting notes:
> 
> https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both
> 
> Best wishes
> 
> Sebastian
> 
> ___
> 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


Re: [Numpy-discussion] numpy histogram data

2021-06-08 Thread Doug Davis
Keith Sloan  writes:

> Thanks
>
> Okay trying to understand the data being returned.
> I have 
>
> counts, bins = np.histogram(RedEllipticalMasses['Z_1'],bins=80)
>
> If I print lengths I get
> RedEllipticalMasses is 2514
> bins = 81
> and counts is 5
> ( It is 5 Arrays each of length 80)
>
> Okay I can get centers with
> centers = 0.5 * (bins[1:] + bins[:-1]
>
> As you advised
> But unclear how I would get their heights and why counts has 5 arrays ?
>

Not having a clear understanding of your dataset.. I'm not quit sure why
you're seeing the results you described. Nevertheless if you define bins
with an integer, the len(counts) should be equal to that number and len
bins should indeed be that number + 1. Perhaps you have a mistake
somewhere else in your code?
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy histogram data

2021-06-08 Thread Keith Sloan
There really is not a lot of other code.

RedEllipticalMasses is an Astropy Table read in from a fits file
from astropy.table import Table, join
import numpy as np
RedEllipticalMasses =
Table.read('../../GAMA_Data/REMassEClassEmeasure.fits')
RedEllipticalMasses['Z_1'] is a single column name 'Z_1'

If. I print its type I get




--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] NumPy 1.21.0rc2 released

2021-06-08 Thread Charles R Harris
Hi All,

On behalf of the NumPy team I am pleased to announce the release of NumPy
1.21.0rc2. The highlights are


   - continued SIMD work covering more functions and platforms,
   - initial work on the new dtype infrastructure and casting,
   - universal2 wheels for Python 3.8 and Python 3.9 on Mac,
   - improved documentation,
   - improved annotations,
   - new ``PCG64DXSM`` bitgenerator for random numbers.


This NumPy release is the result of 571 merged pull requests contributed by
173 people. The Python versions supported for this release are 3.7-3.9,
support for Python 3.10 will be added after Python 3.10 is released. Wheels
can be downloaded from PyPI ; source
archives, release notes, and wheel hashes are available on Github
. Linux users will
need pip >= 0.19.3 in order to install manylinux2010 and manylinux2014
wheels.

*Contributors*

A total of 171 people contributed to this release.  People with a "+" by
their
names contributed a patch for the first time.

   - @8bitmp3 +
   - @DWesl +
   - @Endolith
   - @Illviljan +
   - @Lbogula +
   - @Lisa +
   - @Patrick +
   - @Scian +
   - @h-vetinari +
   - @h6197627 +
   - @jbCodeHub +
   - @legoffant +
   - @sfolje0 +
   - @tautaus +
   - @yetanothercheer +
   - Abhay Raghuvanshi +
   - Adrian Price-Whelan +
   - Aerik Pawson +
   - Agbonze Osazuwa +
   - Aitik Gupta +
   - Al-Baraa El-Hag
   - Alex Henrie
   - Alexander Hunt +
   - Alizé Papp +
   - Allan Haldane
   - Amarnath1904 +
   - Amrit Krishnan +
   - Andras Deak
   - AngelGris +
   - Anne Archibald
   - Anthony Vo +
   - Antony Lee
   - Atharva-Vidwans +
   - Ayush Verma +
   - Bas van Beek
   - Bharat Raghunathan
   - Bhargav V +
   - Brian Soto
   - Carl Michal +
   - Charles Harris
   - Charles Stern +
   - Chiara Marmo +
   - Chris Barnes +
   - Chris Vavaliaris
   - Christina Hedges +
   - Christoph Gohlke
   - Christopher Dahlin +
   - Christos Efstathiou +
   - Chunlin Fang
   - Constanza Fierro +
   - Daniel Evans +
   - Daniel Montes +
   - Dario Mory +
   - David Carlier +
   - David Stansby
   - Deepyaman Datta +
   - Derek Homeier
   - Dong Keun Oh +
   - Dylan Cutler +
   - Eric Larson
   - Eric Wieser
   - Eva Jau +
   - Evgeni Burovski
   - FX Coudert +
   - Faris A Chugthai +
   - Filip Ter +
   - Filip Trojan +
   - François Le Lay +
   - Ganesh Kathiresan
   - Giannis Zapantis +
   - Giulio Procopio +
   - Greg Lucas +
   - Hollow Man +
   - Holly Corbett +
   - I-Shen Leong +
   - Inessa Pawson
   - Isabela Presedo-Floyd
   - Ismael Jimenez +
   - Isuru Fernando
   - Jakob Jakobson
   - James Gerity +
   - Jamie Macey +
   - Jasmin Classen +
   - Jody Klymak +
   - Joseph Fox-Rabinovitz
   - Jérome Eertmans +
   - Jérôme Kieffer +
   - Kamil Choudhury +
   - Kasia Leszek +
   - Keller Meier +
   - Kevin Sheppard
   - Kulin Seth +
   - Kumud Lakara +
   - Laura Kopf +
   - Laura Martens +
   - Leo Singer +
   - Leonardus Chen +
   - Lima Tango +
   - Lumir Balhar +
   - Maia Kaplan +
   - Mainak Debnath +
   - Marco Aurélio da Costa +
   - Marta Lemanczyk +
   - Marten van Kerkwijk
   - Mary Conley +
   - Marysia Winkels +
   - Mateusz Sokół +
   - Matt Haberland
   - Matt Hall +
   - Matt Ord +
   - Matthew Badin +
   - Matthias Bussonnier
   - Matthias Geier
   - Matti Picus
   - Matías Ríos +
   - Maxim Belkin +
   - Melissa Weber Mendonça
   - Meltem Eren Copur +
   - Michael Dubravski +
   - Michael Lamparski
   - Michal W. Tarnowski +
   - Michał Górny +
   - Mike Boyle +
   - Mike Toews
   - Misal Raj +
   - Mitchell Faas +
   - Mukulikaa Parhari +
   - Neil Girdhar +
   - Nicholas McKibben +
   - Nico Schlömer
   - Nicolas Hug +
   - Nilo Kruchelski +
   - Nirjas Jakilim +
   - Ohad Ravid +
   - Olivier Grisel
   - Pamphile ROY +
   - Panos Mavrogiorgos +
   - Patrick T. Komiske III +
   - Pearu Peterson
   - Raghuveer Devulapalli
   - Ralf Gommers
   - Raúl Montón Pinillos +
   - Rin Arakaki +
   - Robert Kern
   - Rohit Sanjay
   - Roman Yurchak
   - Ronan Lamy
   - Ross Barnowski
   - Ryan C Cooper
   - Ryan Polley +
   - Ryan Soklaski
   - Sabrina Simao +
   - Sayed Adel
   - Sebastian Berg
   - Shen Zhou +
   - Stefan van der Walt
   - Sylwester Arabas +
   - Takanori Hirano
   - Tania Allard +
   - Thomas J. Fan +
   - Thomas Orgis +
   - Tim Hoffmann
   - Tomoki, Karatsu +
   - Tong Zou +
   - Touqir Sajed +
   - Tyler Reddy
   - Wansoo Kim
   - Warren Weckesser
   - Weh Andreas +
   - Yang Hau
   - Yashasvi Misra +
   - Zolboo Erdenebaatar +
   - Zolisa Bleki

Cheers,

Charles Harris
Reply allReplyForward
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Tensor Typing presentation and discussion on Wednesday! (As part of the NumPy Community Meeting)

2021-06-08 Thread Stefan van der Walt
On Tue, Jun 8, 2021, at 03:23, Juan Nunez-Iglesias wrote:
> Hello! Any chance this could be recorded for those of us in useless 
> time zones? 😂 

I added a note to the agenda; we'll ask the speakers and record if they don't 
mind.

Stéfan
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Accepting NEP 35 `like=array_like` for use with `__array_function__`

2021-06-08 Thread Ralf Gommers
On Mon, Jun 7, 2021 at 8:34 PM Sebastian Berg 
wrote:

> Hi all,
>
> I have opened a PR (https://github.com/numpy/numpy/pull/19188) to
> *finalize* NEP 35:
>
>
> https://numpy.org/neps/nep-0035-array-creation-dispatch-with-array-function.html
>
> Which added `like=` keyword argument to `np.array`, `np.asarray`,
> `np.arange`, etc. as final.
>
>
> The previous acceptance mail was here:
> https://mail.python.org/pipermail/numpy-discussion/2021-May/081761.html
>
> But, since it may have flown under the radar.  Please don't hesitate to
> voice any concerns!
> We are planning to include this finalization in the NumPy 1.21 release.
> So if you are worried about it, please make sure to voice that soon
> since the release process for 1.21 started.
>
>
> I had previously noted some possible concerns here:
> https://github.com/numpy/numpy/issues/17075
> but in the current version, the `like=` argument is strict about types
> and will raise for `np.array(3, like=3)`.  With that limitation, most
> of those points seem unproblematic.
>

Thanks Sebastian. I agree. And IIRC there haven't been problems with the
current implementation in 1.20 reported, so we should be all good here.

Cheers,
Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion