From 9c798069fa3ebdcfd1c2eff5e7fea7a1b5de1c63 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 28 Feb 2022 13:27:31 +0100
Subject: [PATCH] L2SS-627: Scoping in python remains hard

---
 .../tangostationcontrol/devices/sdp/statistics_collector.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py b/tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py
index a54a8995f..960fc49ab 100644
--- a/tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py
+++ b/tangostationcontrol/tangostationcontrol/devices/sdp/statistics_collector.py
@@ -243,7 +243,7 @@ class XSTCollector(StatisticsCollector):
         """
 
         if subband_indices is None:
-            subband_indices = range(MAX_PARALLEL_SUBBANDS)
+            subband_indices = range(self.MAX_PARALLEL_SUBBANDS)
 
         matrix = numpy.zeros((len(subband_indices), self.MAX_INPUTS, self.MAX_INPUTS), dtype=numpy.complex64)
         xst_blocks = self.parameters["xst_blocks"]
-- 
GitLab