Skip to content

Commit 3aa7e84

Browse files
committed
run again
1 parent 7da7e81 commit 3aa7e84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adaptive/learner/integrator_coeffs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def _coefficients():
163163
]
164164

165165
# Compute the shift matrices.
166-
T_left, T_right = [V_inv[3] @ calc_V((xi[3] + a) / 2, ns[3]) for a in [-1, 1]]
166+
T_left, T_right = (V_inv[3] @ calc_V((xi[3] + a) / 2, ns[3]) for a in [-1, 1])
167167

168168
# If the relative difference between two consecutive approximations is
169169
# lower than this value, the error estimate is considered reliable.

adaptive/tests/test_cquad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def equal_ival(ival, other, *, verbose=False):
3636
b = getattr(other, s)
3737
is_equal = np.allclose(a, b, rtol=0, atol=eps, equal_nan=True)
3838
if verbose and not is_equal:
39-
print("ival.{} - other.{} = {}".format(s, s, a - b))
39+
print(f"ival.{s} - other.{s} = {a - b}")
4040
same_slots.append(is_equal)
4141

4242
return all(same_slots)
@@ -46,7 +46,7 @@ def equal_ivals(ivals, other, *, verbose=False):
4646
"""Note: `other` is a list of ivals."""
4747
if len(ivals) != len(other):
4848
if verbose:
49-
print("len(ivals)={} != len(other)={}".format(len(ivals), len(other)))
49+
print(f"len(ivals)={len(ivals)} != len(other)={len(other)}")
5050
return False
5151

5252
ivals = [sorted(i, key=attrgetter("a")) for i in [ivals, other]]

0 commit comments

Comments
 (0)