From 6cc1fb995d15adae53bcc7467726701a58e18ad7 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 6 Sep 2022 14:53:20 +0200 Subject: [PATCH] L2DTS-272: Turn XSTs into a matrix before transposing, not afterwards --- lofar_station_client/statistics/collector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lofar_station_client/statistics/collector.py b/lofar_station_client/statistics/collector.py index 4a03cef..b89d2a8 100644 --- a/lofar_station_client/statistics/collector.py +++ b/lofar_station_client/statistics/collector.py @@ -404,13 +404,13 @@ class XSTCollector(StatisticsCollector): .view(numpy.complex64) ) + # reshape into [a][b] + block = block.reshape(self.BLOCK_LENGTH, self.BLOCK_LENGTH) + if xst_conjugated[subband_index][block_index]: # block is conjugated and transposed. process. block = block.conjugate().transpose() - # reshape into [a][b] - block = block.reshape(self.BLOCK_LENGTH, self.BLOCK_LENGTH) - # compute destination in matrix first_baseline = baseline_from_index(block_index) first_baseline = ( -- GitLab