From acaa29efa3f6366eac41e5cbf89091e1140ee728 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 11 Dec 2023 13:54:10 +0100
Subject: [PATCH] Fix 2D array definition check

---
 .../devices/base_device_classes/lofar_device.py                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/base_device_classes/lofar_device.py b/tangostationcontrol/tangostationcontrol/devices/base_device_classes/lofar_device.py
index 316f9632e..47c7c5ff3 100644
--- a/tangostationcontrol/tangostationcontrol/devices/base_device_classes/lofar_device.py
+++ b/tangostationcontrol/tangostationcontrol/devices/base_device_classes/lofar_device.py
@@ -470,7 +470,7 @@ class LOFARDevice(Device):
         attr = getattr(self, attribute)
         max_dim_x, max_dim_y = attr.get_max_dim_x(), attr.get_max_dim_y()
 
-        if max_dim_y > 1:
+        if max_dim_y > 0:
             # 2D array -> reshape 1D default
             # This is needed because Tango properties cannot be 2D, so we
             # cannot specify them in their actual shape.
-- 
GitLab