spiketools.utils.checks.check_param_range¶
- spiketools.utils.checks.check_param_range(param, label, bounds)[source]¶
Check a parameter value is within an acceptable range.
- Parameters:
- paramfloat
Parameter value to check.
- labelstr
Label of the parameter being checked.
- boundslist of [float, float]
Bounding range of valid values for the given parameter.
- Raises:
- ValueError
If a parameter that is being checked is out of range.