Skip to content

Commit

Permalink
update f-string to work in Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
twmacro committed Jan 2, 2022
1 parent c5aeb88 commit 285f7f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyyeti/ytools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,9 @@ def compmat(a, b, filterval=0.0, method="abs", pdiff_tol=0, verbose=5):
"""
a, b = np.atleast_2d(a, b)
if a.shape != b.shape:
raise ValueError(f"matrix sizes do not match: {a.shape=}, {b.shape=}")
raise ValueError(
f"matrix sizes do not match: a.shape={a.shape}, b.shape={b.shape}"
)

if np.iscomplexobj(a) ^ np.iscomplexobj(b):
# if only one is complex:
Expand Down

0 comments on commit 285f7f5

Please sign in to comment.