quantify_scheduler.helpers.validators
Module Contents
Classes
Requires a number of type int, float, numpy.integer or numpy.floating. |
- class Numbers(min_value: qcodes.utils.validators.numbertypes = - float('inf'), max_value: qcodes.utils.validators.numbertypes = float('inf'), allow_nan: bool = False)[source]
Bases:
qcodes.utils.validators.Numbers
Requires a number of type int, float, numpy.integer or numpy.floating.
- Parameters
min_value – Minimal value allowed, default -inf.
max_value – Maximal value allowed, default inf.
- Raises
TypeError – If min or max value not a number. Or if min_value is larger than the max_value.