From 1803600c1213972e8b92a42ca9fc8c5bf93401b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Tue, 23 Jul 2024 17:30:33 +0200 Subject: [PATCH] Fixing OSC Sender --- sardine_core/handlers/osc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sardine_core/handlers/osc.py b/sardine_core/handlers/osc.py index 239516a4..76eada8c 100644 --- a/sardine_core/handlers/osc.py +++ b/sardine_core/handlers/osc.py @@ -102,22 +102,22 @@ def send( divisor: NumericElement | Callable[[], NumericElement] = 1, rate: NumericElement | Callable[[], NumericElement] = 1, sort: bool | Callable[[], bool] = True, - **pattern: NumericElement, + **rest_of_pattern: dict, ) -> None: if address is None: return if self.apply_conditional_mask_to_bars( - pattern=pattern, + pattern=rest_of_pattern, ): return + pattern = {"address": _resolve_if_callable(address)} + # Evaluate all potential callables for key, value in rest_of_pattern.items(): pattern[key] = _resolve_if_callable(value) - pattern["address"] = _resolve_if_callable(address) - deadline = self.env.clock.shifted_time for message in self.pattern_reduce( pattern,