88
99class Test_Ca (parameterized .TestCase ):
1010 def test_Ca (self ):
11+ bm .random .seed (1234 )
1112 class Neuron (bp .CondNeuGroup ):
1213 def __init__ (self , size ):
1314 super (Neuron , self ).__init__ (size )
@@ -25,6 +26,7 @@ def __init__(self, size):
2526 self .assertTupleEqual (runner .mon ['Ca3.C' ].shape , (100 , 1 ))
2627
2728 def test_ICaN_IS2008 (self ):
29+ bm .random .seed (1234 )
2830 class Neuron (bp .CondNeuGroup ):
2931 def __init__ (self , size ):
3032 super (Neuron , self ).__init__ (size )
@@ -41,6 +43,7 @@ def __init__(self, size):
4143 self .assertTupleEqual (runner .mon ['Ca.ICa.p' ].shape , (100 , 1 ))
4244
4345 def test_ICaT_HM1992 (self ):
46+ bm .random .seed (1234 )
4447 class Neuron (bp .CondNeuGroup ):
4548 def __init__ (self , size ):
4649 super (Neuron , self ).__init__ (size )
@@ -59,6 +62,7 @@ def __init__(self, size):
5962 self .assertTupleEqual (runner .mon ['Ca.ICa.p' ].shape , (100 , 1 ))
6063
6164 def test_ICaT_HP1992 (self ):
65+ bm .random .seed (1234 )
6266 class Neuron (bp .CondNeuGroup ):
6367 def __init__ (self , size ):
6468 super (Neuron , self ).__init__ (size )
@@ -77,6 +81,7 @@ def __init__(self, size):
7781 self .assertTupleEqual (runner .mon ['Ca.ICa.p' ].shape , (100 , 1 ))
7882
7983 def test_ICaHT_HM1992 (self ):
84+ bm .random .seed (1234 )
8085 class Neuron (bp .CondNeuGroup ):
8186 def __init__ (self , size ):
8287 super (Neuron , self ).__init__ (size )
@@ -95,6 +100,7 @@ def __init__(self, size):
95100 self .assertTupleEqual (runner .mon ['Ca.ICa.p' ].shape , (100 , 1 ))
96101
97102 def test_ICaHT_Re1993 (self ):
103+ bm .random .seed (1234 )
98104 class Neuron (bp .CondNeuGroup ):
99105 def __init__ (self , size ):
100106 super (Neuron , self ).__init__ (size )
@@ -113,6 +119,7 @@ def __init__(self, size):
113119 self .assertTupleEqual (runner .mon ['Ca.ICa.p' ].shape , (100 , 1 ))
114120
115121 def test_ICaL_IS2008 (self ):
122+ bm .random .seed (1234 )
116123 class Neuron (bp .CondNeuGroup ):
117124 def __init__ (self , size ):
118125 super (Neuron , self ).__init__ (size )
0 commit comments