diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-02 05:30:14 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-02 05:30:14 +0000 |
commit | 9ad24c52f3dd0cb3bfdc524214aad1c6e31e70cc (patch) | |
tree | 4f4483031a7afadb61a212b1fe0700f83cee7e3c /numpy/core/_internal.py | |
parent | da42cda6ebd4666299c1287b8fdec82df15197fe (diff) | |
download | numpy-9ad24c52f3dd0cb3bfdc524214aad1c6e31e70cc.tar.gz |
Fix up failing tests.
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index f93087aec..88f8b9f1c 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -199,12 +199,12 @@ class _ctypes(object): def get_data(self): return self._ctypes.c_void_p(self._arr.__array_interface__['data'][0]) - def get_dims(self): + def get_shape(self): return (_getintp_ctype()*self._arr.ndim)(*self._arr.shape) def get_strides(self): return (_getintp_ctype()*self._arr.ndim)(*self._arr.strides) data = property(get_data, None, doc="c-types data") - dims = property(get_dims, None, doc="c-types dims") + shape = property(get_shape, None, doc="c-types dims") strides = property(get_strides, None, doc="c-types strides") |