anazalea / pySankey

create sankey diagrams with matplotlib
GNU General Public License v3.0
249 stars 95 forks source link

TypeError: '>' not supported between instances of 'numpy.ndarray' and 'int' #30

Closed brianpenghe closed 5 years ago

brianpenghe commented 5 years ago

There's probably a typo in line 34:

---> 34     if len(labels >0):
     35         if isinstance(data, list):
     36             data = set(data)

Shouldn't it be if len(labels) >0 ?

Pierre-Sassoulas commented 5 years ago

See : https://github.com/anazalea/pySankey/issues/23