259e86a7a248f33472c0be3ceb177cb47543001d,tests/lazy/test_op_gradients.py,,test_flux_quad_ld,#Any#Any#Any#,298
Before Change
def test_flux_quad_ld(abs_tol=1e-5, rel_tol=1e-5, eps=1e-7):
theano.config.compute_test_value = "off"
map = starry.Map(udeg=2)
xo = np.linspace(-1.5, 1.5, 10)
yo = np.ones_like(xo) * 0.3
zo = 1.0 * np.ones_like(xo)
ro = 0.1
np.random.seed(14)
u = np.array([-1.0] + list(np.random.randn(2)))
func = lambda *args: map.ops.flux(*args)
verify_grad(
func,
(xo, yo, zo, ro, u),
abs_tol=abs_tol,
rel_tol=rel_tol,
eps=eps,
n_tests=1,
)
def test_rv(abs_tol=1e-5, rel_tol=1e-5, eps=1e-7):
theano.config.compute_test_value = "off"
After Change
def test_flux_quad_ld(abs_tol=1e-5, rel_tol=1e-5, eps=1e-7):
with change_flags(compute_test_value="off"):
map = starry.Map(udeg=2)
xo = np.linspace(-1.5, 1.5, 10)
yo = np.ones_like(xo) * 0.3
zo = 1.0 * np.ones_like(xo)
ro = 0.1
np.random.seed(14)
u = np.array([-1.0] + list(np.random.randn(2)))
func = lambda *args: map.ops.flux(*args)
verify_grad(
func,
(xo, yo, zo, ro, u),
abs_tol=abs_tol,
rel_tol=rel_tol,
eps=eps,
n_tests=1,
)
def test_rv(abs_tol=1e-5, rel_tol=1e-5, eps=1e-7):
with change_flags(compute_test_value="off"):
map = starry.Map(ydeg=2, rv=True)
theta = np.linspace(0, 30, 10)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: rodluger/starry
Commit Name: 259e86a7a248f33472c0be3ceb177cb47543001d
Time: 2019-12-05
Author: rodluger@gmail.com
File Name: tests/lazy/test_op_gradients.py
Class Name:
Method Name: test_flux_quad_ld
Project Name: rodluger/starry
Commit Name: 259e86a7a248f33472c0be3ceb177cb47543001d
Time: 2019-12-05
Author: rodluger@gmail.com
File Name: tests/lazy/test_op_gradients.py
Class Name:
Method Name: test_rT_reflected
Project Name: rodluger/starry
Commit Name: 259e86a7a248f33472c0be3ceb177cb47543001d
Time: 2019-12-05
Author: rodluger@gmail.com
File Name: tests/lazy/test_op_gradients.py
Class Name:
Method Name: test_pT