@@ -252,7 +252,17 @@ def test_construct_weight_matrix(tcwm):
252
252
def test_update_weights (tuw ):
253
253
actual = update_weights (tuw [0 ], tuw [1 ], tuw [2 ])
254
254
assert np .shape (actual ) == (len (tuw [0 ]), len (tuw [0 ][0 ].weights ))
255
- trs = []
255
+
256
+ trs = [([ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 0 ), ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 1 ),
257
+ ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 2 )], 1 ),
258
+ ([ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 0 ), ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 1 ),
259
+ ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 2 , 2 )], 0 ),
260
+ ([ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 3 , 0 ), ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 3 , 1 ),
261
+ ComponentSignal ([0 , .25 , .5 , .75 , 1 ], 3 , 2 )], 2 ),
262
+ # ([ComponentSignal([0, .25, .5, .75, 1], 2, 0), ComponentSignal([0, .25, .5, .75, 1], 2, 1),
263
+ # ComponentSignal([0, .25, .5, .75, 1], 2, 2)], -1),
264
+ ]
256
265
@pytest .mark .parametrize ('trs' ,trs )
257
266
def test_reconstruct_signal (trs ):
258
- assert False
267
+ actual = reconstruct_signal (trs [0 ], trs [1 ])
268
+ assert len (actual ) == len (trs [0 ][0 ].grid )
0 commit comments