Skip to content

Commit

Permalink
Fix issue in Graph and update to 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danielegrattarola committed Jan 21, 2024
1 parent 74a108e commit 386bf6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "spektral"
version = "1.2.0"
version = "1.3.1"
authors = [
{ name="Daniele Grattarola", email="daniele.grattarola@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion spektral/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from . import datasets, layers, utils

__version__ = "1.2.0"
__version__ = "1.3.1"
2 changes: 1 addition & 1 deletion spektral/data/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, x=None, a=None, e=None, y=None, **kwargs):
f"rank {len(x.shape)}"
)
if a is not None:
if not (isinstance(a, np.ndarray) or sp.isspmatrix(a)):
if not (isinstance(a, np.ndarray) or sp.issparse(a)):
raise ValueError(f"Unsupported type {type(a)} for a")
if len(a.shape) != 2:
raise ValueError(
Expand Down

0 comments on commit 386bf6f

Please sign in to comment.