spiketools.utils.checks.check_list_options¶
- spiketools.utils.checks.check_list_options(contents, label, options)[source]¶
Check a list of values that each element is one of a set of acceptable options.
- Parameters:
- contentslist of str
List of values to check
- labelstr
Label of the parameter being checked.
- optionslist of str
Valid string values that each element of contents may be.
- Raises:
- ValueError
If an element of contents is not in options.