Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Conversation

@pelson
Copy link
Member

@pelson pelson commented Mar 26, 2015

This was one of the things I thought of on my 🚲 this morning.

@rhattersley
Copy link
Member

>>> biggus.zeros(3).astype('i4')[:2]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/local/ithr/miniconda/envs/biggus/lib/python2.7/site-packages/biggus/__init__.py", line 538, in __getitem__
    indexed_array = self._getitem_full_keys(keys)
  File "/data/local/ithr/miniconda/envs/biggus/lib/python2.7/site-packages/biggus/__init__.py", line 662, in _getitem_full_keys
    return self.array._getitem_full_keys(keys)
  File "/data/local/ithr/miniconda/envs/biggus/lib/python2.7/site-packages/biggus/__init__.py", line 556, in _getitem_full_keys
    raise NotImplementedError('_getitem_full_keys should be overridden.')
NotImplementedError: _getitem_full_keys should be overridden.

And that's why I like abstract methods... 😉

@pelson
Copy link
Member Author

pelson commented Mar 26, 2015

No comment re abstract methods...

I've added a commit which fixes the bug with ArrayContainers. This should now all be dandy.

@pelson
Copy link
Member Author

pelson commented Apr 10, 2015

Anything holding this back from being merged @rhattersley?

rhattersley added a commit that referenced this pull request Apr 10, 2015
Added AsDataTypeArray and the Array.astype method.
@rhattersley rhattersley merged commit f6dbff7 into SciTools:master Apr 10, 2015
@pelson pelson deleted the dtype_array branch April 10, 2015 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants