Skip to content

Commit 7be4de5

Browse files
committed
Fixed SARE python test
1 parent 860cde9 commit 7be4de5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyalp/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "alp-graphblas"
7-
version = "0.8.42"
7+
version = "0.8.43"
88
description = "Python bindings for ALP GraphBLAS (minimal package layout)"
99
authors = [ { name = "ALP" } ]
1010
readme = "README.md"

tests/python/sare_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
J[2,3] = -1
3838
J[4,1] = 3
3939
J[4,1] = -2
40+
h = np.zeros( N )
4041

4142
# You can also import a matrix as follows:
4243
from scipy.io import mmread
@@ -71,7 +72,7 @@
7172
betas_numpy = np.logspace( 1e-2, 1e+2, n_replicas, dtype=np.float64 )
7273

7374
# Initialize energies
74-
energies_numpy = np.diag(states_numpy@J@states_numpy.T)/2 + np.dot(states_numpy,h )
75+
energies_numpy = np.diag(states_numpy@J@states_numpy.T)/2 + np.dot(states_numpy, h)
7576

7677
niterations = 100
7778
verbose = 0

0 commit comments

Comments
 (0)