Skip to content

Commit 3033fde

Browse files
committed
Pep
1 parent 1ee257d commit 3033fde

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pygyro/splines/tests/test_spline_interpolators.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,18 @@ def test_SplineInterpolator2D_radial(ncells, degree):
320320

321321
x1g = basis1.greville
322322
x2g = basis2.greville
323-
ug = f.eval(x1g)[:, None] * poly.eval(x2g)[None,:]
323+
ug = f.eval(x1g)[:, None] * poly.eval(x2g)[None, :]
324324

325325
interp.compute_interpolant(ug, spline)
326326

327327
x1t = np.linspace(*domain1, num=20)
328328
x2t = np.linspace(*domain2, num=20)
329329
vals = np.empty((20, 20))
330330
spline.eval_vector(x1t, x2t, vals)
331-
err = vals - f.eval(x1t)[:, None] * poly.eval(x2t)[None,:]
331+
err = vals - f.eval(x1t)[:, None] * poly.eval(x2t)[None, :]
332332

333333
max_norm_err = np.max(abs(err))
334-
err_bound = spline_1d_error_bound(f, max(np.diff(breaks1).max(), np.diff(breaks2).max()), degree)
334+
err_bound = spline_1d_error_bound(
335+
f, max(np.diff(breaks1).max(), np.diff(breaks2).max()), degree)
335336

336337
assert max_norm_err < err_bound

0 commit comments

Comments
 (0)