From c20f7ae9e0cb1a99cc92982fef57ca3cbe98c234 Mon Sep 17 00:00:00 2001 From: jaycedowell Date: Tue, 30 Jun 2020 18:58:07 -0600 Subject: [PATCH] Index swaps. --- LWA/LWA_bifrost.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LWA/LWA_bifrost.py b/LWA/LWA_bifrost.py index 81d758e4..88b298b2 100755 --- a/LWA/LWA_bifrost.py +++ b/LWA/LWA_bifrost.py @@ -866,12 +866,12 @@ def main(self): # Y a = self.antennas[2 * i + 1] delay = a.cable.delay(freq) - a.stand.z / speedOfLight - phases[:, :, 1, i, :, :] = numpy.exp(2j * numpy.pi * freq * delay) - phases[:, :, 1, i, :, :] /= numpy.sqrt(a.cable.gain(freq)) + phases[:, :, i, 1, :, :] = numpy.exp(2j * numpy.pi * freq * delay) + phases[:, :, i, 1, :, :] /= numpy.sqrt(a.cable.gain(freq)) ## Explicit bad and suspect antenna masking - this will ## mask an entire stand if either pol is bad if self.antennas[2 * i + 0].combined_status < 33 or self.antennas[2 * i + 1].combined_status < 33: - phases[:, :, :, i, :, :] = 0.0 + phases[:, :, i, :, :, :] = 0.0 ## Explicit outrigger masking - we probably want to do ## away with this at some point if a.stand.id == 256: