Skip to content

Commit

Permalink
[src/utils] Add italicize()
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvindecosta committed Jul 30, 2020
1 parent e4bc6a9 commit ec7ae6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def ensure_rgb(image):
return image.convert("RGB")


def italicize(text):
return f"{ef.italic}{text}{rs.italic}"


def submatrices(matrix, shape):
# Extract strides and shapes for calculation.
mat_hs, mat_ws = matrix.strides[:2]
Expand Down

0 comments on commit ec7ae6a

Please sign in to comment.