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
Hi, I'm getting an odd error with the latest version of leidenalg that wasn't appearing with 0.8.3. Please see this github gist for a reproduction of the error:
Hi @AvantiShri, thanks for reporting this! I now realise that I changed something in 0.8.4 to correct some warnings, but that was previously used to accommodate for numpy. I will correct this again. As a workaround, please pass in any arguments, including the initial_membership, function as a Python list, not as a numpy array. You can use .tolist() of the numpy array.
For future people encountering this: @vtraag's suggestion of using .tolist() (rather than simply wrapping the numpy array in a list(...) call) seems to be important.
Hi, I'm getting an odd error with the latest version of leidenalg that wasn't appearing with 0.8.3. Please see this github gist for a reproduction of the error:
https://colab.research.google.com/gist/AvantiShri/46060b5fe0fac540830a3078758a487b/-membership-cannot-exceed-number-of-nodes-error-with-leidenalg-0-8-4.ipynb
Consider the following test:
With leidenalg 0.8.3, test() runs without any error. However, with version 0.8.4, it produces:
The text was updated successfully, but these errors were encountered: