Skip to content

Commit

Permalink
Replace {e:s} with {e}
Browse files Browse the repository at this point in the history
  • Loading branch information
zfergus committed Oct 27, 2024
1 parent 3940aa7 commit 9b811ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seam_erasure/seam_erasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ def erase_seam(mesh, texture, sv_method=SeamValueMethod.NONE, do_global=False):
solution = numpy.array(rhs)
except Exception as e:
logging.warning(
f"cvxopt.cholmod failed, using scipy.sparse.linalg.spsolve(): {e:s}")
f"cvxopt.cholmod failed, using scipy.sparse.linalg.spsolve(): {e}")
try:
solution = scipy.sparse.linalg.spsolve(quad, -lin)
except Exception as e:
# Use iterative solver for large textures
logging.error(f"scipy.sparse.linalg.spsolve() failed: {e:s}")
logging.error(f"scipy.sparse.linalg.spsolve() failed: {e}")
logging.info(
f"Using iterative solver for large system (nnz={quad.nnz})")
textureVec = texture.reshape(N, -1)
Expand Down

0 comments on commit 9b811ad

Please sign in to comment.