@@ -39,21 +39,30 @@ def test_default_values_pass(self):
3939 self .assertTrue (np .array_equal (imp_fun .intensity , np .arange (0 , 121 , 5 )))
4040 self .assertTrue (np .array_equal (imp_fun .paa , np .ones ((25 ,))))
4141 self .assertTrue (np .array_equal (imp_fun .mdd [0 :6 ], np .zeros ((6 ,))))
42- self .assertTrue (np .array_equal (imp_fun .mdd [6 :10 ],
43- np .array ([0.0006753419543492556 , 0.006790495604105169 ,
44- 0.02425254393374475 , 0.05758706257339458 ])))
45- self .assertTrue (np .array_equal (imp_fun .mdd [10 :15 ],
46- np .array ([0.10870556455111065 , 0.1761433569521351 ,
47- 0.2553983618763961 , 0.34033822528795565 ,
48- 0.4249447743109498 ])))
49- self .assertTrue (np .array_equal (imp_fun .mdd [15 :20 ],
50- np .array ([0.5045777092933046 , 0.576424302849412 ,
51- 0.6393091739184916 , 0.6932203123193963 ,
52- 0.7388256596555696 ])))
53- self .assertTrue (np .array_equal (imp_fun .mdd [20 :25 ],
54- np .array ([0.777104531116526 , 0.8091124649261859 ,
55- 0.8358522190681132 , 0.8582150905529946 ,
56- 0.8769633232141456 ])))
42+ np .testing .assert_allclose (
43+ imp_fun .mdd [6 :25 ],
44+ [
45+ 0.0006753419543492556 ,
46+ 0.006790495604105169 ,
47+ 0.02425254393374475 ,
48+ 0.05758706257339458 ,
49+ 0.10870556455111065 ,
50+ 0.1761433569521351 ,
51+ 0.2553983618763961 ,
52+ 0.34033822528795565 ,
53+ 0.4249447743109498 ,
54+ 0.5045777092933046 ,
55+ 0.576424302849412 ,
56+ 0.6393091739184916 ,
57+ 0.6932203123193963 ,
58+ 0.7388256596555696 ,
59+ 0.777104531116526 ,
60+ 0.8091124649261859 ,
61+ 0.8358522190681132 ,
62+ 0.8582150905529946 ,
63+ 0.8769633232141456 ,
64+ ],
65+ )
5766
5867 def test_values_pass (self ):
5968 """Compute mdr interpolating values."""
0 commit comments