[Numpy-discussion] Scipy 2017 NumPy sprint
chris.barker at noaa.gov
Thu Jul 6 12:42:06 EDT 2017
On Wed, Jul 5, 2017 at 11:05 AM, Stephan Hoyer <shoyer at gmail.com> wrote:
> That is, the boilerplate needed for multi-dimensional indexing and
>> slicing, etc...
>> That could be a nice little sprint-able project.
> Indeed. Let me highlight a few mixins
> <https://github.com/pydata/xarray/blob/6a20f917041abf53bcb35e210d59f5b331211012/xarray/core/utils.py#L381-L425> that
> I wrote for xarray that might be more broadly useful.
At a quick glance, that is exactly the kind of ting I had in mind.
The challenge here is that there are quite a few different meanings to
> "ndarray-like", so mixins really need to be mix-and-match-able.
> But at least defining a base list of methods to implement/override would
> be useful.
With sample implementations, even... at last of parts of it -- I'm thinking
things like parsing out the indexes/slices in __getitem__ -- that sort of
> In NumPy, this could go along with NDArrayOperatorsMixins in
Yes! I had no idea that existed.
Christopher Barker, Ph.D.
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion