@@ -48,6 +48,9 @@ def check(chan):
4848 err_msg = 'SISO channel as more than 1 Tx' )
4949
5050 def test_fading (self ):
51+ # Set seed
52+ seed (17121996 )
53+
5154 def check_chan_gain (mod , chan ):
5255 msg = choice (mod , self .msg_length )
5356 chan .propagate (msg )
@@ -121,6 +124,9 @@ def check_chan_gain(mod, chan):
121124 err_msg = 'Wrong channel variance with real channel' )
122125
123126 def test_noise_generation (self ):
127+ # Set seed
128+ seed (17121996 )
129+
124130 def check_noise (mod , chan , corrected_SNR_lin ):
125131 msg = choice (mod , self .msg_length )
126132 chan .propagate (msg )
@@ -267,6 +273,9 @@ def __init__(self):
267273 super (TestMIMOFading , self ).__init__ ()
268274
269275 def do (self , nb_tx , nb_rx ):
276+ # Set seed
277+ seed (17121996 )
278+
270279 def check_chan_gain (mod , chan ):
271280 msg = choice (mod , self .msg_length )
272281 chan .propagate (msg )
@@ -408,7 +417,7 @@ def __init__(self):
408417 def do (self , nb_tx , nb_rx ):
409418 chan = MIMOFlatChannel (nb_tx , nb_rx , 0 )
410419
411- # Text raising of ValueError
420+ # Test raising of ValueError
412421 with assert_raises (ValueError ):
413422 chan .specular_compo (0 , - 1 , 0 , 1 )
414423 with assert_raises (ValueError ):
@@ -429,6 +438,9 @@ def __init__(self):
429438 super (TestMIMONoiseGeneration , self ).__init__ ()
430439
431440 def do (self , nb_tx , nb_rx ):
441+ # Set seed
442+ seed (17121996 )
443+
432444 def check_noise (mod , chan , corrected_SNR_lin ):
433445 msg = choice (mod , self .msg_length )
434446 chan .propagate (msg )
@@ -505,6 +517,9 @@ def __init__(self):
505517 super (TestMIMOkFactor , self ).__init__ ()
506518
507519 def do (self , nb_tx , nb_rx ):
520+ # Set seed
521+ seed (17121996 )
522+
508523 prod_nb = nb_tx * nb_rx
509524
510525 # Real channel
@@ -533,5 +548,4 @@ def do(self, nb_tx, nb_rx):
533548
534549
535550if __name__ == "__main__" :
536- seed (17121996 )
537551 run_module_suite ()
0 commit comments