ophyd.v2.core.get_dtype#

ophyd.v2.core.get_dtype(typ: Type) dtype | None#

Get the runtime dtype from a numpy ndarray type annotation

>>> import numpy.typing as npt
>>> import numpy as np
>>> get_dtype(npt.NDArray[np.int8])
dtype('int8')