What’s new in h5py 2.7¶
Python 3.2 is no longer supported¶
h5py 2.7 drops Python 3.2 support, and testing is not longer performed on Python 3.2. The latest versions of
numpy do not support Python 3.2, and dropping 3.2 allows both
b prefixes to be used for strings. A clean up of some of the legacy code was done in #675 by Andrew Collette.
Additionally, support for Python 2.6 is soon to be dropped for
pip (See https://github.com/pypa/pip/issues/3955) and
setuptools (See https://github.com/pypa/setuptools/issues/878), and
numpy has dropped Python 2.6 also in the latest release. While
h5py has not dropped Python 2.6 this release, users are strongly encouraged to move to Python 2.7 where possible.
Improved testing support¶
There has been a major increase in the number of configurations
h5py is automatically tested in, with Windows CI support added via Appveyor (#795, #798, #799 and #801 by James Tocknell) and testing of minimum requirements to ensure we still satisfy them (#703 by James Tocknell). Additionally,
tox was used to ensure that we don’t run tests on Python versions which our dependencies have dropped or do not support (#662, #700 and #733). Thanks to to the Appveyor support, unicode tests were made more robust (#788, #800 and #804 by James Tocknell). Finally, other tests were improved or added where needed (#724 by Matthew Brett, #789, #794 and #802 by James Tocknell).
Improved python compatibility¶
Support for detecting the version of HDF5 via
pkgconfig was added by Axel Huebl in #734, and support for specifying the path to MPI-supported HDF5 was added by Axel Huebl in #721.
h5py's classifiers were updated to include supported python version and interpreters in #811 by James Tocknell.
Support for additional HDF5 features added¶
Low-level support for HDF5 Direct Chunk Write was added in #691 by Simon Gregor Ebner. Minimal support for HDF5 File Image Operations was added by Andrea Bedini in #680. Ideas and opinions for further support for both HDF5 Direct Chunk Write and HDF5 File Image Operations are welcome. High-level support for reading and writing null dataspaces was added in #664 by James Tocknell.
Improvements to type system¶
Reading and writing of compound datatypes has improved, with support for different orderings and alignments (#701 by Jonah Bernhard, #702 by Caleb Morse #738 by @smutch, #765 by Nathan Goldbaum and #793 by James Tocknell). Support for reading extended precision and non-standard floating point numbers has also been added (#749, #812 by Thomas A Caswell, #787 by James Tocknell and #781 by Martin Raspaud). Finally, compatibility improvements to
Cython annotations of HDF5 types were added in #692 and #693 by Aleksandar Jelenak.
- Fix deprecation of
numpyboolean arrays (#683 by James Tocknell)
- Check for duplicates in fancy index validation (#739 by Sam Toyer)
- Avoid potential race condition (#754 by James Tocknell)
- Fix inconsistency when slicing with
(1,)(#772 by Artsiom)
size_tto store Python object id (#773 by Christoph Gohlke)
- Avoid errors when the Python GC runs during
nonlocal_close()(#776 by Antoine Pitrou)
- Move from
six.PY2(#686 by James Tocknell)