diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py index ad21851b4478f4a864fb7de755c01f8ae783437f..fea714b2764a1d4f84ec8ef3ac866c11c788dbb3 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py @@ -340,7 +340,7 @@ class Beamlet(opcua_device): nyquist_zones = self.sdp_proxy.nyquist_zone_R # (fpga_nr, [input_nr][pol]) # repeat nyquist zone for all beamlets, to match the shape of beamlet_subbands - nyquist_zones = numpy.repeat(nyquist_zones, self.N_BEAMLETS_CTRL, axis=1) + nyquist_zones = numpy.repeat(nyquist_zones, constants.N_beamlets_ctrl, axis=1) # compute the frequency of each beamlet for each input return self._subband_frequencies(beamlet_subbands, self.sdp_proxy.clock_RW, nyquist_zones) diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py b/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py index 92c5c578f589e5aeb16407a75b1ec4b266fd93ae..6770f738a0a43e23919f8a73cf49f012f3827a21 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py @@ -144,7 +144,7 @@ class DigitalBeam(beam_device): # Generate positions for all FPGA inputs. # Use reference position for any missing antennas so they always get a delay of 0 - input_itrf = numpy.array([reference_itrf] * constants.MAX_INPUTS) + input_itrf = numpy.array([reference_itrf] * constants.S_ant) for antenna_nr, (fpga_nr, input_nr) in enumerate(self.antennafield_proxy.Antenna_to_SDP_Mapping_R): if input_nr >= 0: input_itrf[fpga_nr * constants.A_pn + input_nr] = antenna_itrf[antenna_nr]