|
TRIQS/h5 2.0.0
C++ interface to HDF5
|
Helper functions used in the Python interface of the h5 library.
Functions | |
| c2py::pyref | h5::h5_read_bare (group g, std::string const &name) |
| Read a dataset from an HDF5 group and return it as a Python object. | |
| void | h5::h5_write_bare (group g, std::string const &name, PyObject *ob) |
| Write a Python object to an HDF5 group. | |
| c2py::pyref h5::h5_read_bare | ( | group | g, |
| std::string const & | name ) |
#include </Users/runner/work/h5/h5/python/h5/h5py_io.hpp>
Read a dataset from an HDF5 group and return it as a Python object.
The Python type is determined from the dataset's HDF5 type and its rank:
| g | h5::group containing the dataset. |
| name | Name of the dataset from which the object is read. |
Definition at line 170 of file h5py_io.cpp.
| void h5::h5_write_bare | ( | group | g, |
| std::string const & | name, | ||
| PyObject * | ob ) |
#include </Users/runner/work/h5/h5/python/h5/h5py_io.hpp>
Write a Python object to an HDF5 group.
Only scalars, strings and numpy arrays are supported. They are first converted to a corresponding C++ type and then written to HDF5 using the functionality provided by h5:
| g | h5::group in which the dataset is created. |
| name | Name of the dataset to which the object is written. |
| ob | Python object to be written. |
Definition at line 146 of file h5py_io.cpp.