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

TMSS-747: Fix COBALT beamformer model in the blocksize calculation. Added...

TMSS-747: Fix COBALT beamformer model in the blocksize calculation. Added regression test based on use case that broke in production.
parent d3b072b2
No related branches found
No related tags found
1 merge request!451TMSS-747: Fix COBALT beamformer model in the blocksize calculation. Added...
......@@ -96,7 +96,7 @@ class BlockConstraints(object):
NR_PPF_TAPS = 16
MAX_THREADS_PER_BLOCK = 1024
CORRELATOR_BLOCKSIZE = 16
BEAMFORMER_NR_DELAYCOMPENSATION_CHANNELS = 64
BEAMFORMER_NR_DELAYCOMPENSATION_CHANNELS = 256
BEAMFORMER_DELAYCOMPENSATION_BLOCKSIZE = 16
# Process correlator settings
......
......@@ -99,5 +99,20 @@ class TestBlockSize(unittest.TestCase):
self.assertAlmostEquals(c._samples2time(bs.integrationSamples), integrationTime, delta = integrationTime * 0.05)
@unit_test
def testCoherentStokesBlocksize(self):
""" Test the coherent stokes block size against reference output, based on cases that used to fail in production.
If the output of these calculations change, make sure the described configurations do actually work in COBALT! """
coh = StokesSettings()
coh.nrChannelsPerSubband = 16
coh.timeIntegrationFactor = 1
c = BlockConstraints(coherentStokesSettings=[coh])
bs = BlockSize(c)
self.assertEqual(bs.blockSize, 196608)
if __name__ == "__main__":
unittest.main(verbosity=2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment