Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.io.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.io.base
Commits
c5e0e813
Commit
c5e0e813
authored
11 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Append/Set/Replace implemented; More tests passing
parent
6ede4652
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xbob/io/bobskin.h
+3
-3
3 additions, 3 deletions
xbob/io/bobskin.h
xbob/io/hdf5.cpp
+602
-53
602 additions, 53 deletions
xbob/io/hdf5.cpp
xbob/io/test/test_hdf5.py
+6
-6
6 additions, 6 deletions
xbob/io/test/test_hdf5.py
with
611 additions
and
62 deletions
xbob/io/bobskin.h
+
3
−
3
View file @
c5e0e813
...
...
@@ -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.
Click to expand it.
xbob/io/hdf5.cpp
+
602
−
53
View file @
c5e0e813
This diff is collapsed.
Click to expand it.
xbob/io/test/test_hdf5.py
+
6
−
6
View file @
c5e0e813
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment