def test_bad_derivative(self):
"""Tests that derivative errors are caught
"""
bump_eos = EOSBump()
vol = np.logspace(np.log10(.1), np.log10(1), 50)
with self.assertRaises(IOError):
pressure = bump_eos.derivative(order=2)(vol)
# end
p_fun = lambda v: 2.56e9 / v**3
评论列表
文章目录