SkBlaz / py3plex

Py3plex - A multilayer complex network visualization and analysis library in python3
BSD 3-Clause "New" or "Revised" License
159 stars 37 forks source link

error in "./core/multinet.py" #9

Closed chaoshengt closed 4 years ago

chaoshengt commented 4 years ago

when i run the code ,it appeared:

multinet.py:791: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.

How to fix it?

SkBlaz commented 4 years ago

Interesting, thanks for pointing this out! Could you provide a minimal example so I can reproduce this?

Thanks!

SkBlaz commented 4 years ago

I've refactored this part now: https://github.com/SkBlaz/py3plex/blob/master/examples/example_numeric_encoding.py hope this helps.

chaoshengt commented 4 years ago

I've refactored this part now: https://github.com/SkBlaz/py3plex/blob/master/examples/example_numeric_encoding.py hope this helps.

Thank you :)