Re: [Numpy-discussion] Moving forward with value based casting

2019-06-18 Thread Sebastian Berg
Hi Hameer, On Tue, 2019-06-18 at 04:28 +0200, Hameer Abbasi wrote: > On Wed, 2019-06-12 at 12:55 -0500, Sebastian Berg wrote: > > On Wed, 2019-06-05 at 15:41 -0500, Sebastian Berg wrote: > > > Hi all, > > > > A type is safely castable to another if all of these numbers are > exceeded or met. >

Re: [Numpy-discussion] new MaskedArray class

2019-06-18 Thread Marten van Kerkwijk
On Tue, Jun 18, 2019 at 12:55 PM Allan Haldane wrote: > > This may be too much to ask from the initializer, but, if so, it still > > seems most useful if it is made as easy as possible to do, say, `class > > MaskedQuantity(Masked, Quantity): `. > > Currently MaskedArray does not accept

Re: [Numpy-discussion] new MaskedArray class

2019-06-18 Thread Allan Haldane
On 6/18/19 10:06 AM, Marten van Kerkwijk wrote: > Hi Allen, > > Thanks for the message and link! In astropy, we've been struggling with > masking a lot, and one of the main conclusions I have reached is that > ideally one has a more abstract `Masked` class that can take any type of > data

Re: [Numpy-discussion] new MaskedArray class

2019-06-18 Thread Marten van Kerkwijk
Hi Allen, Thanks for the message and link! In astropy, we've been struggling with masking a lot, and one of the main conclusions I have reached is that ideally one has a more abstract `Masked` class that can take any type of data (including `ndarray`, of course), and behaves like that data as