Skip to content
Snippets Groups Projects
Commit 826e4907 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Add `range` as accepted sequence type for plotting function

The "Plot All" spectrum option wasn't working in the workbench when using python 3 because it was passing a range.
parent 4868c633
No related merge requests found
......@@ -284,7 +284,7 @@ def _raise_if_not_sequence(value, seq_name, element_type=None):
is an instance of this type
:raises ValueError: if the conditions are not met
"""
accepted_types = (list, tuple)
accepted_types = (list, tuple, range)
if type(value) not in accepted_types:
raise ValueError("{} should be a list or tuple".format(seq_name))
if element_type is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment