[h5py] 341/455: Add H5Fget_intent
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 8e0bfc33bd3fe8931252b36c5590f03db926ea3d
Author: andrewcollette <andrew.collette at gmail.com>
Date: Tue Jan 5 04:51:34 2010 +0000
Add H5Fget_intent
---
h5py/defs.pxd | 2 ++
h5py/h5f.pyx | 12 +++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/h5py/defs.pxd b/h5py/defs.pxd
index 6b60e13..fd49251 100644
--- a/h5py/defs.pxd
+++ b/h5py/defs.pxd
@@ -242,6 +242,8 @@ cdef extern from "hdf5.h":
int H5Fget_obj_count(hid_t file_id, unsigned int types) except *
int H5Fget_obj_ids(hid_t file_id, unsigned int types, int max_objs, hid_t *obj_id_list) except *
+ IF H5PY_18API:
+ herr_t H5Fget_intent(hid_t file_id, unsigned int *intent) except *
# === H5FD - Low-level file descriptor API ====================================
diff --git a/h5py/h5f.pyx b/h5py/h5f.pyx
index 9e77b5c..7078887 100644
--- a/h5py/h5f.pyx
+++ b/h5py/h5f.pyx
@@ -308,6 +308,16 @@ cdef class FileID(ObjectID):
"""
return H5Fget_freespace(self.id)
-
+ IF H5PY_18API:
+ def get_intent(self):
+ """ () => INT
+
+ Determine the file's write intent, either of:
+ - H5F_ACC_RDONLY
+ - H5F_ACC_RDWR
+ """
+ cdef unsigned int mode
+ H5Fget_intent(self.id, &mode)
+ return mode
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list