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
I know that this repository was last updated like 4 years ago so I'm not expecting a fix for this issue. However I want to highlight it if anybody else will meet the same problem, maybe this issue will be helpful for them to fix it.
I've tried to create a simple Random Regular Graph using following code:
Traceback (most recent call last):
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\scipy\sparse\_sputils.py", line 359, in isintlike
operator.index(x)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\X\Documents\GitHub\Y\tests\benchmarks.py", line 3, in <module>
G = graphs.RandomRegular(N=4, k=2)
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\pygsp\graphs\randomregular.py", line 85, in __init__
if v1 == v2 or A[v1, v2] == 1:
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\scipy\sparse\_lil.py", line 162, in __getitem__
return IndexMixin.__getitem__(self, key)
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\scipy\sparse\_index.py", line 30, in __getitem__
index, new_shape = self._validate_indices(key)
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\scipy\sparse\_index.py", line 218, in _validate_indices
elif isinstance(idx, slice) or isintlike(idx):
File "C:\Users\X\Documents\GitHub\Y\.venv\lib\site-packages\scipy\sparse\_sputils.py", line 367, in isintlike
raise ValueError(msg)
ValueError: Inexact indices into sparse matrices are not allowed
I've went and try to figure out what is the cause, I've found that in the following file:
So as I said at the beginning, I don't expect to see fix for this issue, but I'm leaving it here if somebody will ever try to generate RRG using this library ;>
The text was updated successfully, but these errors were encountered:
Hello all,
I know that this repository was last updated like 4 years ago so I'm not expecting a fix for this issue. However I want to highlight it if anybody else will meet the same problem, maybe this issue will be helpful for them to fix it.
I've tried to create a simple Random Regular Graph using following code:
And I've got following error:
I've went and try to figure out what is the cause, I've found that in the following file:
simply changing lines 81 and 82 from:
to
fixes the issue. This might be related to some specific version of numpy/scipy so I'm pasting here what is currently in use in my venv:
So as I said at the beginning, I don't expect to see fix for this issue, but I'm leaving it here if somebody will ever try to generate RRG using this library ;>
The text was updated successfully, but these errors were encountered: