Skip to content

Commit

Permalink
trying to debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkaplantest committed Sep 6, 2024
1 parent 6b662bf commit 0618751
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_model_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,17 @@ def f(value):
)
elif param == "SINI":
sini = model.SINI.value.astype(np.float64)
stepgen = numdifftools.MaxStepGenerator(abs(sini) / 2)
print(sini.dtype)
stepgen = numdifftools.MaxStepGenerator(abs(sini) / 10)
print(stepgen)
else:
stepgen = None
df = numdifftools.Derivative(f, step=stepgen)

if param == "SINI":
print(getattr(model, param).value.astype(np.float64).dtype)
print(f(getattr(model, param).value.astype(np.float64)).dtype)

a = model.d_phase_d_param(toas, delay=None, param=param).to_value(1 / units)
b = df(getattr(model, param).value.astype(np.float64))
if param.startswith("FB"):
Expand Down

0 comments on commit 0618751

Please sign in to comment.