@@ -108,34 +108,13 @@ def test_get_residual_matrix(tgrm):
108108
109109
110110trd = [
111- ([np .array ([[.5 ], [.5 ]]), np .array ([[1 , 2 ], [3 , 4 ]]), np .array ([[.25 ], [.75 ]]), 2 , 1 , 2 ],
112- (np .array ([[.25 , 1.5 ], [0 , 0 ]]), np .array ([[0 , 0 ], [0 , 0 ]]), np .array ([[0 , 0 ], [0 , 0 ]]))),
113- ([[[.9 ], [.7 ]], [[1 , 2 ], [3 , 4 ], [5 , 6 ], [7 , 8 ], [9 , 10 ]], [[.25 ], [.75 ]], 2 , 1 , 5 ],
114- ([[.25 , 1.5 ], [.8056 , 3.6429 ], [1.3611 , 5.7857 ], [1.9167 , 0 ], [0 , 0 ]],
115- [[0 , 0 ], [- .61728 , - 3.06122 ], [- 1.234567 , - 6.12244 ], [- 1.8518 , 0 ], [0 , 0 ]],
116- [[0 , 0 ], [1.3717 , 8.746355 ], [2.74348 , 17.49271 ], [4.11523 , 0 ], [0 , 0 ]])),
117- ([[[.5 , .7 ], [.5 , .8 ]], [[1.1 , 2.2 ], [3.3 , 4.4 ]], [[.25 , .5 ], [.75 , .5 ]], 2 , 2 , 2 ],
118- ([[.275 , 1.65 , .55 , 1.1 ], [0 , 0 , 0 , 0 ]], [[0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 ]], [[0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 ]])),
119- ([[[.9 , .9 ], [.9 , .9 ], [.95 , .95 ], [.95 , .95 ]], [[- 11 , - .3 , 0 , - .2 ], [- 14 , - 1 , 0 , - .75 ]],
120- [[.5 , .5 ], [.2 , 0 ], [.3 , .5 ], [0 , 0 ]], 4 , 2 , 2 ],
121- ([[- 5.5 , - 0.06 , 0 , 0 , - 5.5 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ]],
122- [[0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ]], [[0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ], [0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ]])),
123- ([[[.7 , .8 , .9 ], [.9 , .9 , .95 ], [1 , .8 , .9 ]], [[0 , 0 , 0 ], [.3 , .4 , .5 ], [1 , 1.2 , 1.3 ]],
124- [[.33 , .5 , .6 ], [0 , .25 , .3 ], [.66 , .25 , .1 ]], 3 , 3 , 3 ],
125- ([[0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ], [.1980 , 0 , .33 , .2375 , .1222 , .1750 , .2267 , .1326 , .0589 ],
126- [0 , 0 , .8580 , 0 , 0 , 0 , 0 , 0 , 0 ]],
127- [[0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ], [- .47142 , 0 , - .429 , - .546875 , - .246913 , - .3125 , - .51851 , - .26593 , - .098765 ],
128- [0 , 0 , - 0.24175643 , 0 , 0 , 0 , 0 , 0 , 0 ]],
129- [[0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ], [1.3469 , 0 , 1.96711566 , 1.3671875 , .548696 , .78125 , 1.15226 , .55984 , .2194787 ],
130- [0 , 0 , 0.27796989 , 0 , 0 , 0 , 0 , 0 , 0 ]]))
111+
131112]
132113
133114
134115@pytest .mark .parametrize ('trd' , trd )
135116def test_reconstruct_data (trd ):
136- actual = reconstruct_data (trd [0 ][0 ], trd [0 ][1 ], trd [0 ][2 ], trd [0 ][3 ], trd [0 ][4 ], trd [0 ][5 ])
137- expected = trd [1 ]
138- np .testing .assert_allclose (actual , expected , rtol = 1e-03 )
117+ assert False
139118
140119
141120tld = [(([[[1 , - 1 , 1 ], [0 , 0 , 0 ], [2 , 10 , - 3 ]], 1 ]), ([[4 , 2 , 4 ], [3 , 3 , 3 ], [5 , 13 , 0 ]])),
0 commit comments