From 4d2a767ad1ed479c34ed9de2834063d31d67b9a5 Mon Sep 17 00:00:00 2001 From: Dawn Date: Fri, 7 Aug 2026 17:26:14 +0200 Subject: [PATCH] fix: call get_class_str positionally for aarecommon compat aarecommon 0.2.2 declares a parameter literally named cls while newer releases bind cls as the receiver, so the keyword form fails on one side or the other; the positional call works on both. The sibling call site already did this. Co-Authored-By: Claude Fable 5 --- src/aare/daq/mlbox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/aare/daq/mlbox.py b/src/aare/daq/mlbox.py index 33621bc3..e3553dff 100644 --- a/src/aare/daq/mlbox.py +++ b/src/aare/daq/mlbox.py @@ -359,7 +359,10 @@ class MlBox: logger.debug(f"Failed to parse prediction: {e}", exc_info=True) continue - base_key = MLOutputModel.get_class_str(cls=cls) + # Positional: aarecommon 0.2.2 takes a parameter literally named + # "cls" while newer releases bind cls as the receiver, so the + # keyword form breaks on one side or the other. + base_key = MLOutputModel.get_class_str(cls) if base_key not in out.boxes: out.boxes[base_key] = MLBoxModel( cls=cls,