Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
93d4f601
Commit
93d4f601
authored
Jul 28, 2016
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/Python
- wrappers for reading/writing attributes
parent
20cd5aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
8 deletions
+27
-8
src/Python/H5hut.i
src/Python/H5hut.i
+26
-3
src/Python/__init__.py
src/Python/__init__.py
+1
-5
No files found.
src/Python/H5hut.i
View file @
93d4f601
...
...
@@ -14,6 +14,7 @@
%
include
numpy
.
i
%
include
cstring
.
i
%
include
cpointer
.
i
%
apply
unsigned
long
int
{
h5_prop_t
}
;
%
apply
unsigned
long
int
{
h5_file_t
}
;
...
...
@@ -30,9 +31,11 @@
%
cstring_bounded_output
(
char
*
const
attrib_name
,
256
)
;
extern
h5_err_t
H5GetFileAttribInfo
(
const
h5_file_t
,
const
h5_id_t
,
char
*
const
attrib_name
,
const
h5_size_t
l_attrib_name
=
256
,
h5_int64_t
*
OUTPUT
,
h5_size_t
*
OUTPUT
)
;
const
h5_size_t
,
char
*
const
attrib_name
,
const
h5_size_t
l_attrib_name
=
256
,
h5_int64_t
*
OUTPUT
,
h5_size_t
*
OUTPUT
)
;
extern
h5_err_t
H5GetFileAttribInfoByName
(
const
h5_file_t
,
...
...
@@ -49,6 +52,26 @@ extern h5_err_t H5ReadFileAttribString (
const
h5_file_t
f
,
const
char
*
const
name
,
char
*
const
buffer
)
;
extern
h5_err_t
H5GetStepAttribInfo
(
const
h5_file_t
,
const
h5_size_t
,
char
*
const
attrib_name
,
const
h5_size_t
l_attrib_name
=
256
,
h5_int64_t
*
OUTPUT
,
h5_size_t
*
OUTPUT
)
;
extern
h5_err_t
H5GetStepAttribInfoByName
(
const
h5_file_t
,
const
char
*
const
name
,
h5_int64_t
*
OUTPUT
,
h5_size_t
*
OUTPUT
)
;
extern
h5_err_t
H5GetStepAttribName
(
const
h5_file_t
,
const
h5_id_t
,
char
*
const
attrib_name
,
const
h5_size_t
l_attrib_name
=
256
)
;
%
clear
char
*
const
attrib_name
;
///////////////////////////////////////////////////////////////////////////////
...
...
src/Python/__init__.py
View file @
93d4f601
#TODO: use the rewrite to swap depending whether mpi is there are not..
import
numpy
import
sys
import
H5hut
as
H5hut_rewrite
from
H5hut
import
*
...
...
@@ -95,8 +96,3 @@ def __update_types__():
sys
.
modules
[
"H5hut"
].
__dict__
[
__new_func__
]
=
locals
()[
__new_func__
]
__update_types__
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment