From 834e6ad4dfcdc488b77ee43e08bb6822f956879e Mon Sep 17 00:00:00 2001 From: x01dc Date: Wed, 28 Oct 2026 19:57:05 +0100 Subject: [PATCH] fix(aerotech): quote aerocapture channel keys so the sastt config loads Integer YAML map keys made the DeviceConfigMessage undecodable on SciHub (msgpack strict_map_key), so update_session_with_file hung until timeout. A3200PositionCapture already converts the keys with int(). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01M8zoDzDfsCTY2o5bT3J7Wv --- csaxs_bec/device_configs/sastt_aerotech.yaml | 9 +++++---- csaxs_bec/device_configs/sastt_aerotech_panda.yaml | 9 +++++---- .../simulated_omny/simulated_sastt_aerotech.yaml | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/csaxs_bec/device_configs/sastt_aerotech.yaml b/csaxs_bec/device_configs/sastt_aerotech.yaml index 40adb73f..b7981b79 100644 --- a/csaxs_bec/device_configs/sastt_aerotech.yaml +++ b/csaxs_bec/device_configs/sastt_aerotech.yaml @@ -120,11 +120,12 @@ aerocapture: port: 8000 drive_axis: X # DATAACQ source -> axis: 0-5 local encoder counter, 6-11 MXR channel 0-5 (max. 4 kHz) + # keys are quoted: integer map keys break the config message (msgpack strict_map_key) channels: - 6: X - 11: Z - 2: Y - 9: U + "6": X + "11": Z + "2": Y + "9": U enabled: false onFailure: buffer readOnly: false diff --git a/csaxs_bec/device_configs/sastt_aerotech_panda.yaml b/csaxs_bec/device_configs/sastt_aerotech_panda.yaml index 039071f8..2bcb4f93 100644 --- a/csaxs_bec/device_configs/sastt_aerotech_panda.yaml +++ b/csaxs_bec/device_configs/sastt_aerotech_panda.yaml @@ -110,11 +110,12 @@ aerocapture: port: 8000 drive_axis: X # DATAACQ source -> axis: 0-5 local encoder counter, 6-11 MXR channel 0-5 (max. 4 kHz) + # keys are quoted: integer map keys break the config message (msgpack strict_map_key) channels: - 6: X - 11: Z - 2: Y - 9: U + "6": X + "11": Z + "2": Y + "9": U enabled: false onFailure: buffer readOnly: false diff --git a/csaxs_bec/device_configs/simulated_omny/simulated_sastt_aerotech.yaml b/csaxs_bec/device_configs/simulated_omny/simulated_sastt_aerotech.yaml index e95bd902..7e5d4a2e 100644 --- a/csaxs_bec/device_configs/simulated_omny/simulated_sastt_aerotech.yaml +++ b/csaxs_bec/device_configs/simulated_omny/simulated_sastt_aerotech.yaml @@ -109,11 +109,12 @@ aerocapture: port: 8000 drive_axis: X # DATAACQ source -> axis: 0-5 local encoder counter, 6-11 MXR channel 0-5 (max. 4 kHz) + # keys are quoted: integer map keys break the config message (msgpack strict_map_key) channels: - 6: X - 11: Z - 2: Y - 9: U + "6": X + "11": Z + "2": Y + "9": U enabled: true onFailure: buffer readOnly: false