Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef27b22

Browse files
committed
Add vds_min_hdf5_version property to H5PYConfig
1 parent 645d087 commit ef27b22

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

h5py/h5.pyx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ ITER_INC = H5_ITER_INC # Increasing order
1616
ITER_DEC = H5_ITER_DEC # Decreasing order
1717
ITER_NATIVE = H5_ITER_NATIVE # No particular order, whatever is fastest
1818

19-
INDEX_NAME = H5_INDEX_NAME # Index on names
20-
INDEX_CRT_ORDER = H5_INDEX_CRT_ORDER # Index on creation order
19+
INDEX_NAME = H5_INDEX_NAME # Index on names
20+
INDEX_CRT_ORDER = H5_INDEX_CRT_ORDER # Index on creation order
2121

2222
class ByteStringContext(object):
2323

@@ -114,7 +114,7 @@ cdef class H5PYConfig:
114114
property read_byte_strings:
115115
""" Returns a context manager which forces all strings to be returned
116116
as byte strings. """
117-
117+
118118
def __get__(self):
119119
with phil:
120120
return self._bytestrings
@@ -126,12 +126,17 @@ cdef class H5PYConfig:
126126
return True
127127
ELSE:
128128
return False
129-
129+
130130
property swmr_min_hdf5_version:
131131
""" Tuple indicating the minimum HDF5 version required for SWMR features"""
132132
def __get__(self):
133133
return SWMR_MIN_HDF5_VERSION
134134

135+
property vds_min_hdf5_version:
136+
"""Tuple indicating the minimum HDF5 version required for virtual dataset (VDS) features"""
137+
def __get__(self):
138+
return VDS_MIN_HDF5_VERSION
139+
135140
cdef H5PYConfig cfg = H5PYConfig()
136141

137142
cpdef H5PYConfig get_config():
@@ -151,7 +156,7 @@ def get_libversion():
151156
cdef unsigned int minor
152157
cdef unsigned int release
153158
cdef herr_t retval
154-
159+
155160
H5get_libversion(&major, &minor, &release)
156161

157162
return (major, minor, release)

0 commit comments

Comments
 (0)