@@ -53,7 +53,7 @@ def test_yaml():
5353 assert calc .n_statistics == len (calc ._statistics ), (
5454 'Property not equal to number of statistics' )
5555
56- def test_mpi ():
56+ def test_multivariate ():
5757 # Load in all base statistics from the YAML file
5858
5959 data = get_data ()
@@ -81,14 +81,14 @@ def test_mpi():
8181 if any ([m .name == e for e in excuse_stochastic ]):
8282 continue
8383
84- m .mpi (get_more_data ())
84+ m .multivariate (get_more_data ())
8585
86- scratch_adj = m .mpi (data .to_numpy ())
87- adj = m .mpi (data )
86+ scratch_adj = m .multivariate (data .to_numpy ())
87+ adj = m .multivariate (data )
8888 assert np .allclose (adj ,scratch_adj ,rtol = 1e-1 ,atol = 1e-2 ,equal_nan = True ), (
8989 f'{ m .name } ({ m .humanname } ) mpi output changed between cached and strach computations: { adj } != { scratch_adj } ' )
9090
91- recomp_adj = m .mpi (data )
91+ recomp_adj = m .multivariate (data )
9292 assert np .allclose (adj ,recomp_adj ,rtol = 1e-1 ,atol = 1e-2 ,equal_nan = True ), (
9393 f'{ m .name } ({ m .humanname } ) mpi output changed when recomputing.' )
9494
@@ -111,7 +111,7 @@ def test_mpi():
111111 assert t_s == pytest .approx (new_t_s ,rel = 1e-1 ,abs = 1e-2 ), (
112112 f'{ m .name } ({ m .humanname } ) Bivariate output from cache mismatch results from scratch for computation ({ j } ,{ i } ): { t_s } != { new_t_s } ' )
113113 except NotImplementedError :
114- a = m .mpi (p [[i ,j ]])
114+ a = m .multivariate (p [[i ,j ]])
115115 s_t , t_s = a [0 ,1 ], a [1 ,0 ]
116116
117117 if not math .isfinite (s_t ):
@@ -206,7 +206,7 @@ def test_group():
206206 test_yaml ()
207207 test_load ()
208208 test_group ()
209- test_mpi ()
209+ test_multivariate ()
210210
211211 # This was a bit tricky to implement so just ensuring it passes a test from the creator's website
212212 test_ccm ()
0 commit comments