first draft of hdf5, reads master metadata, reads data dims, process of hyperslab

This commit is contained in:
2024-12-03 21:16:58 +01:00
parent b43003966f
commit 4233509615
26 changed files with 1417 additions and 11 deletions

29
cmake/Findh5py.cmake Normal file
View File

@ -0,0 +1,29 @@
# Findh5py.cmake
#
# This module finds if h5py is installed and sets the H5PY_FOUND variable.
# It also sets the H5PY_INCLUDE_DIRS and H5PY_LIBRARIES variables.
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import h5py"
RESULT_VARIABLE H5PY_IMPORT_RESULT
OUTPUT_QUIET
ERROR_QUIET
)
if(H5PY_IMPORT_RESULT EQUAL 0)
set(H5PY_FOUND TRUE)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import h5py; print(h5py.get_include())"
OUTPUT_VARIABLE H5PY_INCLUDE_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(H5PY_INCLUDE_DIRS ${H5PY_INCLUDE_DIR})
set(H5PY_LIBRARIES ${PYTHON_LIBRARIES})
else()
set(H5PY_FOUND FALSE)
endif()
mark_as_advanced(H5PY_INCLUDE_DIRS H5PY_LIBRARIES)