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

Fix off-by-one when processing XSTs

parent e21958f4
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ class XSTCollector(StatisticsCollector):
# check whether set of baselines in this packet are not out of bounds
for antenna in (0,1):
if fields.first_baseline[antenna] + fields.nof_signal_inputs >= self.MAX_INPUTS:
if fields.first_baseline[antenna] + fields.nof_signal_inputs > self.MAX_INPUTS:
# packet describes an input that is out of bounds for us
raise ValueError(f"Packet describes {fields.nof_signal_inputs} x {fields.nof_signal_inputs} baselines starting at {fields.first_baseline}, but we are limited to describing MAX_INPUTS={self.MAX_INPUTS}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment