You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs when next() is called on an empty iterator when trying to understand data:
# understand `data`ifchannelisNone:
# assume 1D sequence or sequence of 1D sequencestry:
first_element=next(iter(data)) # <-- fails hereexceptTypeError:
msg="`data` should be 1D array or list of 1D arrays."msg+=" Specify `channel` to use ND array or list of ND"msg+=" arrays."raiseTypeError(msg)
# promote singleton if necessarytry:
iter(first_element) # success => sequence of 1D sequencesdata_length=len(data)
exceptTypeError:
data= [data]
data_length=1
The text was updated successfully, but these errors were encountered:
FlowCal.plot.violin(data=[]) still fails in v1.3.0 with the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/home/jsexton/Downloads/FlowCal-master/FlowCal/plot.py", line 1810, in violin
t = _LogicleTransform(data=data, channel=channel)
File "/home/jsexton/Downloads/FlowCal-master/FlowCal/plot.py", line 315, in __init__
raise ValueError("T should be positive")
ValueError: T should be positive
The following code fails using commit bc98686 (a few commits upstream of when
plot-violin
was merged intodevelop
):The error occurs when
next()
is called on an empty iterator when trying to understanddata
:The text was updated successfully, but these errors were encountered: