Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Oct 24, 2023
1 parent 5b97741 commit 57b25f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions brainpy/_src/tests/test_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ class TestDelayRegister(unittest.TestCase):
def test2(self):
bp.share.save(i=0)
lif = bp.dyn.Lif(10)
lif.register_local_delay('a', 10.)
data = lif.get_local_delay('a')
lif.register_local_delay('spike', 'a', 10.)
data = lif.get_local_delay('spike', 'a')
self.assertTrue(bm.allclose(data, bm.zeros(10)))

with self.assertRaises(AttributeError):
lif.register_local_delay('a', 'a', 10.)



0 comments on commit 57b25f6

Please sign in to comment.