Skip to content

Commit

Permalink
Index swaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycedowell committed Jul 1, 2020
1 parent 379b747 commit c20f7ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LWA/LWA_bifrost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c20f7ae

Please sign in to comment.