def test_bspline(self): np.random.seed(12458) assert_allclose(bsp.bspline(np.random.rand(1, 1), 2), array([[0.73694695]])) data_array_complex = np.random.rand(4, 4) + np.random.rand(4, 4) * 1j data_array_complex = 0.1 * data_array_complex result_array_complex = array( [[0.40882362, 0.41021151, 0.40886708, 0.40905103], [0.40829477, 0.41021230, 0.40966097, 0.40939871], [0.41036803, 0.40901724, 0.40965331, 0.40879513], [0.41032862, 0.40925287, 0.41037754, 0.41027477]]) assert_allclose(bsp.bspline(data_array_complex, 10), result_array_complex)
def test_bspline(self): np.random.seed(12458) assert_allclose(bsp.bspline(np.random.rand(1, 1), 2), array([[0.73694695]])) data_array_complex = np.random.rand(4, 4) + np.random.rand(4, 4)*1j data_array_complex = 0.1*data_array_complex result_array_complex = array( [[0.40882362, 0.41021151, 0.40886708, 0.40905103], [0.40829477, 0.41021230, 0.40966097, 0.40939871], [0.41036803, 0.40901724, 0.40965331, 0.40879513], [0.41032862, 0.40925287, 0.41037754, 0.41027477]]) assert_allclose(bsp.bspline(data_array_complex, 10), result_array_complex)