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

L2SS-769: Also do not allow num_pointings to be negative

parent 9d5be505
No related branches found
No related tags found
1 merge request!317Resolve L2SS-769 "Implement digital beam"
......@@ -161,7 +161,7 @@ class beam_device(lofar_device):
def configure_for_initialise(self, num_pointings):
super().configure_for_initialise()
if num_pointings > self.MAX_POINTINGS:
if not (0 < num_pointings <= self.MAX_POINTINGS):
raise ValueError(f"beam_device is configured to support 0 - {self.MAX_POINTINGS} pointings, but {num_pointings} were requested")
# Initialise tracking control
......
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