[Numpy-discussion] Only integer scalar arrays can be converted to a scalar index
Chris Barker - NOAA Federal
chris.barker at noaa.gov
Fri Sep 15 18:16:27 EDT 2017
No thoughts on optimizing memory, but that indexing error probably comes
from np.mean producing float results. An astype call shoulder that work.
Sent from my iPhone
On Sep 15, 2017, at 5:51 PM, Robert McLeod <robbmcleod at gmail.com> wrote:
On Fri, Sep 15, 2017 at 2:37 PM, Elliot Hallmark <Permafacture at gmail.com>
> Nope. Numpy only works on in memory arrays. You can determine your own
> chunking strategy using hdf5, or something like dask can figure that
> strategy out for you. With numpy you might worry about not accidentally
> making duplicates or intermediate arrays, but that's the extent of memory
> optimization you can do in numpy itself.
NumPy does have it's own memory map variant on ndarray:
Robert McLeod, Ph.D.
robbmcleod at gmail.com
robbmcleod at protonmail.com
NumPy-Discussion mailing list
NumPy-Discussion at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion