def test_input_none(self): n_p = 3 pdata_ref = np.zeros(n_p) pdata = inputchecks.check_parameter_data(None, n_p) assert_array_equal(pdata, np.squeeze(pdata_ref))
def test_input_columns(self): n_p = 3 pdata_ref = np.atleast_2d(np.linspace(0, n_p - 1, n_p)) pdata = inputchecks.check_parameter_data(pdata_ref.T, n_p) assert_array_equal(pdata, np.squeeze(pdata_ref))