spiketools.utils.checks.check_param_lengths¶
- spiketools.utils.checks.check_param_lengths(params, labels, expected_length=None)[source]¶
Check that a set of parameters have the same length.
- Parameters:
- paramslist of collections
A set of parameters to check that they each have the same length.
- labelslist of str
The names of the parameters, to print in the error message.
- expected_lengthint, optional
The expected length of each of the parameters, to check against.
- Raises:
- ValueError
If the parameters are not the same length and/or are not the expected length.