def test_eos_get_sigma(self):
""" Tests that the co-variance matrix is generated correctly
"""
eos = EOSModel(self.p_fun)
sigma_eos = eos.get_sigma()
n_spline = eos.get_option('spline_N')
spline_var = eos.get_option('spline_sigma')
self.assertEqual(sigma_eos.shape, (n_spline, n_spline))
npt.assert_array_equal(np.diag(sigma_eos),
(eos.get_c() * spline_var)**2)
评论列表
文章目录