Skip to content

Commit 7b8a025

Browse files
author
Juan Orduz
committed
fix format
1 parent fa7d0b1 commit 7b8a025

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymc/variational/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __call__(self, approx, _, i) -> None:
8484
self.prev = current
8585
norm = np.linalg.norm(delta, self.ord)
8686
if norm < self.tolerance:
87-
raise StopIteration("Convergence achieved at %d" % i)
87+
raise StopIteration(f"Convergence achieved at {i}")
8888

8989
@staticmethod
9090
def flatten_shared(shared_list):

tests/model/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def test_model_roundtrip(self):
532532
cloudpickle.loads(s)
533533
except Exception:
534534
raise AssertionError(
535-
"Exception while trying roundtrip with pickle protocol %d:\n" % proto
535+
f"Exception while trying roundtrip with pickle protocol {proto}:\n"
536536
+ "".join(traceback.format_exc())
537537
)
538538

0 commit comments

Comments
 (0)