44
55import numpy .typing as npt
66
7- from AFMReader import asd , gwy , ibw , jpk , spm , stp , top , topostats
7+ from AFMReader import asd , gwy , h5_jpk , ibw , jpk , spm , stp , top , topostats
88from AFMReader .logging import logger
99
1010logger .enable (__package__ )
@@ -45,7 +45,7 @@ def load(self) -> tuple[npt.NDArray | str, float | None]: # noqa: C901
4545 Returns
4646 -------
4747 tuple
48- The image data (stack if ''.asd'') and the pixel to nanometre scaling ratio.
48+ The image data (stack if ''.asd'' or ''.h5-jpk'' ) and the pixel to nanometre scaling ratio.
4949
5050 Raises
5151 ------
@@ -64,6 +64,8 @@ def load(self) -> tuple[npt.NDArray | str, float | None]: # noqa: C901
6464 image , pixel_to_nanometre_scaling_factor = jpk .load_jpk (self .filepath , self .channel )
6565 elif self .suffix == ".spm" :
6666 image , pixel_to_nanometre_scaling_factor = spm .load_spm (self .filepath , self .channel )
67+ elif self .suffix == ".h5-jpk" :
68+ image , pixel_to_nanometre_scaling_factor , _ = h5_jpk .load_h5jpk (self .filepath , self .channel )
6769 elif self .suffix == ".stp" :
6870 image , pixel_to_nanometre_scaling_factor = stp .load_stp (self .filepath )
6971 elif self .suffix == ".top" :
0 commit comments