aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/_basic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/hardware/scope/_basic.py b/qolab/hardware/scope/_basic.py
index acb7687..bb655a0 100644
--- a/qolab/hardware/scope/_basic.py
+++ b/qolab/hardware/scope/_basic.py
@@ -15,9 +15,9 @@ def calcSparsingAndNumPoints(availableNpnts=None, maxRequiredPoints=None):
Parameters
----------
- availableNpnts: int or None
+ availableNpnts: int or None (throws error)
Number of available points. If set to None exit with error
- maxRequiredPoints: int or (None)
+ maxRequiredPoints: int or None (throws error)
number of requested points after decimation.
If availableNpnts< maxRequiredPoints*2,
decimation is impossible and we will get up to factor of 2 more
@@ -30,7 +30,7 @@ def calcSparsingAndNumPoints(availableNpnts=None, maxRequiredPoints=None):
if availableNpnts is None:
raise ValueError("Invalid availableNpnts value, must be int.")
if maxRequiredPoints is None:
- maxRequiredPoints = self.maxRequiredPoints
+ raise ValueError("Invalid maxRequiredPoints value, must be int.")
if availableNpnts <= maxRequiredPoints * 2:
Npnts = availableNpnts