From f65659bd3dee1807878b0a18e34959ec5b01efbc Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 12 Aug 2025 17:02:00 +0200 Subject: [PATCH] w --- superxas_bec/devices/timepix/timepix.py | 2 +- .../devices/timepix/timepix_fly_client/timepix_fly_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index 6bd2a5c..c6ce5b2 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -258,7 +258,7 @@ class Timepix(PSIDeviceBase, TimePixControl): # Fetch the backend socket info net_add = self.backend.timepix_fly_client.get_net_addresses() - print(f"TimePixFly backend is listening on: {net_add.get('address', '')}") + print(f"TimePixFly backend is listening on: {net_add.address}") self.cam.raw_file_template.set("").wait(timeout=self._pv_timeout) self.cam.raw_file_path.set(f"tcp://connect@127.0.0.1:8451").wait(timeout=self._pv_timeout) diff --git a/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_client.py b/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_client.py index e209918..4ca5575 100644 --- a/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_client.py +++ b/superxas_bec/devices/timepix/timepix_fly_client/timepix_fly_client.py @@ -449,7 +449,7 @@ class TimepixFlyClient: ) self._put(put_cmd="other-config", value=other_config.model_dump(), put_response_model=None) - def get_net_addresses(self) -> dict[str, str]: + def get_net_addresses(self) -> NetAddresses: """ Get the network addresses of the TimePix detector by sending a GET request to the net-addresses endpoint.