Skip to content
Snippets Groups Projects
Commit c5e0e813 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Append/Set/Replace implemented; More tests passing

parent 6ede4652
Branches
Tags
No related merge requests found
......@@ -22,17 +22,17 @@ class bobskin: public bob::core::array::interface {
public: //api
/**
* @brief Builds a new array an array like object
* @brief Builds a new skin from an array like object
*/
bobskin(PyObject* array, bob::core::array::ElementType eltype);
/**
* @brief Builds a new array an array like object
* @brief Builds a new skin from a numpy array object
*/
bobskin(PyArrayObject* array, bob::core::array::ElementType eltype);
/**
* @brief Builds a new array an array like object
* @brief Builds a new skin around a blitz array object
*/
bobskin(PyBlitzArrayObject* array);
......
This diff is collapsed.
......@@ -278,13 +278,13 @@ def test_can_load_hdf5_from_matlab():
# interestingly enough, if you load those files as arrays, you will read
# the whole data at once:
t = peek_all(testutils.datafile('matlab_1d.hdf5', __name__))
assert t.shape == (512,)
assert t.dtype == numpy.dtype('float64')
dtype, shape, stride = peek_all(testutils.datafile('matlab_1d.hdf5', __name__))
assert shape == (512,)
assert dtype == numpy.dtype('float64')
t = peek_all(testutils.datafile('matlab_2d.hdf5', __name__))
assert t.shape == (512, 2)
assert t.dtype == numpy.dtype('float64')
dtype, shape, stride = peek_all(testutils.datafile('matlab_2d.hdf5', __name__))
assert shape == (512, 2)
assert dtype == numpy.dtype('float64')
def test_matlab_import():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment