Folks,
My search engine was not able to help me on this one, possibly because I
don't know exactly *what* I am looking for.
I need to override __getitem__ for a class that wrapps a numpy array. I
know the dimensions of my array (which can be variable from instance to
instance), and I know
I don't think NumPy has a function like this (at least, not exposed to Python),
but I wrote one for xray, expanded_indexer, that you are welcome to borrow:
https://github.com/xray/xray/blob/v0.6.0/xray/core/indexing.py#L10
​Stephan
On Sunday, Aug 23, 2015 at 7:54 PM, Fabien
On 08/23/2015 08:08 PM, Stephan Hoyer wrote:
I don't think NumPy has a function like this (at least, not exposed to
Python), but I wrote one for xray, expanded_indexer, that you are
welcome to borrow:
Hi Stephan,
that's perfect, thanks!
Fabien
___
Hi all-
Is there documentation about the limits and workarounds for py2/py3
pickle/np.save/load compatibility? I haven't found anything except developer
bug tracking discussions (eg. #4879 in github numpy).
The kinds of errors you get can be really obscure when save/loading complicated