From fd97f144df3b191653f3022f578e24cef8c4a46d Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Mon, 17 Jun 2024 10:56:23 +0100 Subject: [PATCH] Fix resource kwargs inconsistencies with nexus writer --- src/ophyd_async/panda/writers/_hdf_writer.py | 2 +- src/ophyd_async/panda/writers/_panda_hdf_file.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ophyd_async/panda/writers/_hdf_writer.py b/src/ophyd_async/panda/writers/_hdf_writer.py index 63ba64e81e..64575f6638 100644 --- a/src/ophyd_async/panda/writers/_hdf_writer.py +++ b/src/ophyd_async/panda/writers/_hdf_writer.py @@ -85,7 +85,7 @@ async def _update_datasets(self) -> None: capture_table = await self.panda_device.data.datasets.get_value() self._datasets = [ - _HDFDataset(dataset_name, dataset_name, [1], multiplier=1) + _HDFDataset(dataset_name, "/" + dataset_name, [1], multiplier=1) for dataset_name in capture_table["name"] ] diff --git a/src/ophyd_async/panda/writers/_panda_hdf_file.py b/src/ophyd_async/panda/writers/_panda_hdf_file.py index e6c7fe6c72..44ec51d347 100644 --- a/src/ophyd_async/panda/writers/_panda_hdf_file.py +++ b/src/ophyd_async/panda/writers/_panda_hdf_file.py @@ -30,7 +30,7 @@ def __init__( data_key=ds.data_key, resource_path=(f"{str(directory_info.root)}/{full_file_name}"), resource_kwargs={ - "internal_path": ds.internal_path, + "path": ds.internal_path, "multiplier": ds.multiplier, "timestamps": "/entry/instrument/NDAttributes/NDArrayTimeStamp", },