Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors due to the major update of NumPy #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tutorial/demo_mutag.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

# Load data
# comment next line if data.mutag is in a different folder
mutag_list = np.load("graphkernels/data.mutag")
mutag_list = np.load("graphkernels/data.mutag", allow_pickle=True)

# Uncomment next line if data.mutag is in your current folder
#mutag_list = np.load("data.mutag")
#mutag_list = np.load("data.mutag", allow_pickle=True)

### ALL KERNELS COMPUTE
K1 = gk.CalculateEdgeHistKernel(mutag_list)
Expand Down
4 changes: 2 additions & 2 deletions src/GKextCPy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Solve the chicken-and-egg problem of requiring packages *before* the
# script has been parsed.
for package in ['numpy', 'pkgconfig']:
for package in ['numpy<2.0', 'pkgconfig']:

# Don't try to install packages that already exist.
try:
Expand Down Expand Up @@ -55,7 +55,7 @@ def get_include_dirs():
)

setup(name = 'GKextCPy',
version = '0.4.1',
version = '0.4.2',
author = 'Elisabetta Ghisu',
description = """Graph Kernels: building the extension Python module. This is a wrapper package from C++ to Python.""",
ext_modules = [GKextCPy_module],
Expand Down