diff --git a/src/ophyd_async/epics/adcore/_hdf_writer.py b/src/ophyd_async/epics/adcore/_hdf_writer.py index a58eec49e..484f19ab9 100644 --- a/src/ophyd_async/epics/adcore/_hdf_writer.py +++ b/src/ophyd_async/epics/adcore/_hdf_writer.py @@ -109,11 +109,11 @@ async def open(self, multiplier: int = 1) -> Dict[str, DataKey]: for child in root: datakey = child.attrib["name"] if child.attrib.get("type", "EPICS_PV") == "EPICS_PV": - np_datatye = convert_pv_dtype_to_np( + np_datatype = convert_pv_dtype_to_np( child.attrib.get("dbrtype", "DBR_NATIVE") ) else: - np_datatye = convert_param_dtype_to_np( + np_datatype = convert_param_dtype_to_np( child.attrib.get("datatype", "INT") ) self._datasets.append( @@ -121,7 +121,7 @@ async def open(self, multiplier: int = 1) -> Dict[str, DataKey]: datakey, f"/entry/instrument/NDAttributes/{datakey}", (), - np_datatye, + np_datatype, multiplier, ) )