Skip to content
Snippets Groups Projects
Commit 1d91bc01 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'fix-xst-attributes' into 'master'

Fix reshaping XST attributes if we have less than 192 inputs

See merge request !714
parents f6de5ad1 2f2e37ce
Branches
Tags
1 merge request!714Fix reshaping XST attributes if we have less than 192 inputs
...@@ -445,22 +445,22 @@ class XST(Statistics): ...@@ -445,22 +445,22 @@ class XST(Statistics):
def read_xst_real_R(self): def read_xst_real_R(self):
return numpy.real(self.statistics_client.collector.xst_values()).reshape( return numpy.real(self.statistics_client.collector.xst_values()).reshape(
MAX_PARALLEL_SUBBANDS, MAX_INPUTS * MAX_INPUTS MAX_PARALLEL_SUBBANDS, self.statistics_collector.nr_signal_inputs**2
) )
def read_xst_imag_R(self): def read_xst_imag_R(self):
return numpy.imag(self.statistics_client.collector.xst_values()).reshape( return numpy.imag(self.statistics_client.collector.xst_values()).reshape(
MAX_PARALLEL_SUBBANDS, MAX_INPUTS * MAX_INPUTS MAX_PARALLEL_SUBBANDS, self.statistics_collector.nr_signal_inputs**2
) )
def read_xst_power_R(self): def read_xst_power_R(self):
return numpy.abs(self.statistics_client.collector.xst_values()).reshape( return numpy.abs(self.statistics_client.collector.xst_values()).reshape(
MAX_PARALLEL_SUBBANDS, MAX_INPUTS * MAX_INPUTS MAX_PARALLEL_SUBBANDS, self.statistics_collector.nr_signal_inputs**2
) )
def read_xst_phase_R(self): def read_xst_phase_R(self):
return numpy.angle(self.statistics_client.collector.xst_values()).reshape( return numpy.angle(self.statistics_client.collector.xst_values()).reshape(
MAX_PARALLEL_SUBBANDS, MAX_INPUTS * MAX_INPUTS MAX_PARALLEL_SUBBANDS, self.statistics_collector.nr_signal_inputs**2
) )
# xst_R, but as a matrix of input x input, for each specific subband index # xst_R, but as a matrix of input x input, for each specific subband index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment