Skip to content

Commit 20c81d2

Browse files
committed
update test cases
1 parent 86b7189 commit 20c81d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/components/neurons/graded/test_bernoulliErrorCell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ def clamp_target(x):
6161
outs = jnp.concatenate(outs, axis=1)
6262
# print(outs)
6363
## output should equal input
64-
np.testing.assert_allclose(outs, y_seq, atol=1e-7)
64+
np.testing.assert_allclose(outs, y_seq, atol=1e-3)
6565

6666
# test_bernoulliErrorCell()

tests/components/other/test_expKernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ def clamp(x):
5454
#print(outs)
5555

5656
## output should equal input
57-
assert_array_equal(outs, y_seq)
57+
np.testing.assert_allclose(outs, y_seq, atol=1e-8)
5858

5959
#test_expKernel1()

tests/components/synapses/test_STPDenseSynapse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_STPDenseSynapse1():
5959
Wdyn = jnp.concatenate(Wdyn, axis=1)
6060
# print(outs)
6161
# print(Wdyn)
62-
assert_array_equal(outs, outs_truth)
63-
assert_array_equal(Wdyn, Wdyn_truth)
62+
np.testing.assert_allclose(outs, outs_truth, atol=1e-8)
63+
np.testing.assert_allclose(Wdyn, Wdyn_truth, atol=1e-8)
6464

6565
#test_STPDenseSynapse1()

0 commit comments

Comments
 (0)