From fc787c45fdb7610db9cf55d6ba677f46e1069d7c Mon Sep 17 00:00:00 2001 From: maffettone Date: Wed, 13 Dec 2023 11:19:04 -0800 Subject: [PATCH] FIX: bkg broadcast --- pdf_agents/agents.py | 4 ++-- pdf_agents/startup_scripts/mmm4-kmeans.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf_agents/agents.py b/pdf_agents/agents.py index ef85851..d72c1af 100644 --- a/pdf_agents/agents.py +++ b/pdf_agents/agents.py @@ -51,7 +51,7 @@ def __init__( ) except AttributeError: # None available in redis - self._background = 0.0 + self._background = np.zeros((2, 1)) if offline: _default_kwargs = self.get_offline_objects() else: @@ -179,7 +179,7 @@ def background(self): ] ) except AttributeError: - self._background = 0.0 + self._background = np.zeros((2, 1)) return self._background # @background.setter diff --git a/pdf_agents/startup_scripts/mmm4-kmeans.py b/pdf_agents/startup_scripts/mmm4-kmeans.py index d69a521..2667313 100644 --- a/pdf_agents/startup_scripts/mmm4-kmeans.py +++ b/pdf_agents/startup_scripts/mmm4-kmeans.py @@ -8,7 +8,7 @@ ask_on_tell=False, report_on_tell=True, k_clusters=4, - motor_names=["Grid_X", "Grid_Y"], + motor_names=["xstage", "ystage"], )