From ed3440f68db63eca943e28d5994fa30f6fa981ac Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 23 Jan 2026 08:50:01 +0100 Subject: [PATCH] w --- .../bec_ipython_client/plugins/tool_box/debug_tools.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/csaxs_bec/bec_ipython_client/plugins/tool_box/debug_tools.py b/csaxs_bec/bec_ipython_client/plugins/tool_box/debug_tools.py index 585df7a..7eb15ea 100644 --- a/csaxs_bec/bec_ipython_client/plugins/tool_box/debug_tools.py +++ b/csaxs_bec/bec_ipython_client/plugins/tool_box/debug_tools.py @@ -161,7 +161,7 @@ class DebugTools: s.wait() print("Acquire measurement finished.") print("Checking MCS data...") - scan_data = bec.history.get_by_scan_id(s.scan_id) + scan_data = bec.history.get_by_scan_id(s.scans.scan_id) mcs_data = scan_data.devices.mcs print(mcs_data) @@ -187,7 +187,7 @@ class DebugTools: for entry in cfg["detector"]: det = Detector( - name=to_identifier(entry["description"]), hostnames=entry["hostnames"], cfg=cfg + name=to_identifier(entry["description"]), hostnames=entry["hostname"], cfg=cfg ) ret[det.name] = det return ret @@ -247,11 +247,7 @@ class DebugTools: def open_it_service_page(self): """Open the overview of IT services hosted by Science IT (Leo Sala) for cSAXS.""" - try: - dock_area = gui.new() - except Exception as e: - print(f"Could not open new GUI dock area: {e}") - return + dock_area = gui.new() print("Opening IT service page in new dock...") url = "https://metrics.psi.ch/d/saf8mxv/x12sa?orgId=1&from=now-24h&to=now&timezone=browser&var-receiver_hosts=sls-jfjoch-001.psi.ch&var-writer_hosts=xbl-daq-34.psi.ch&var-beamline=X12SA&var-slurm_partitions=csaxs&var-receiver_services=broker&var-writer_services=writer&refresh=15m" wb = dock_area.new(widget=gui.available_widgets.WebsiteWidget)