Skip to content

Commit

Permalink
Remove debug comments from test_log_eval_N
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed May 10, 2023
1 parent 4be14c7 commit 999fb30
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/eko/test_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,12 @@ def p1Nref(N, lnx):

def test_log_eval_N(self):
xg = interpolation.XGrid([np.exp(-1.0), 1.0], True)
# assert xg.grid[0] == -1.0
# assert xg.grid[1] == 0.0
inter_N = interpolation.InterpolatorDispatcher(xg, 1)
# p_0(x) = -ln(x)
p0N = inter_N[0]
assert len(p0N.areas) == 1
p0_cs_ref = [0.0, -1.0]
for act_c, res_c in zip(p0N.areas[0], p0_cs_ref):
# assert act_c == res_c
assert_almost_equal(act_c, res_c)

def p0Nref_full(N, lnx):
Expand All @@ -233,7 +230,6 @@ def p0Nref_partial(N, lnx):
assert len(p1N.areas) == 1
p1_cs_ref = [1.0, 1.0]
for act_c, res_c in zip(p1N.areas[0], p1_cs_ref):
# assert act_c == res_c
assert_almost_equal(act_c, res_c)

def p1Nref_full(N, lnx):
Expand All @@ -249,8 +245,6 @@ def p1Nref_partial(N, lnx):
# iterate configurations
for N in [1.0, 2.0, complex(1.0, 1.0)]:
# check skip
# assert p0N(N, 0.0) == 0.0
# assert p1N(N, 0.0) == 0.0
assert_almost_equal(p0N(N, 0.0), 0.0)
assert_almost_equal(p1N(N, 0.0), 0.0)
# check values for full
Expand Down

0 comments on commit 999fb30

Please sign in to comment.