Skip to content

Commit

Permalink
fix logo script
Browse files Browse the repository at this point in the history
  • Loading branch information
trichter committed Oct 24, 2024
1 parent ff8aa31 commit c135aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/create_sugar_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create_logo(fname, seed=None, **kw):
color='0.7', lw=2)
ax.add_patch(ellipse)
ax.add_patch(arc)
ax.annotate(aa.replace('*', ' '), (0.5, 0.5), ha='center', size=50)
ax.annotate(aa.str.replace('*', ' '), (0.5, 0.5), ha='center', size=50)
ax.annotate(seq[i:j], (0.5, 0.44), ha='center', size=32)
ax.annotate(seq[:i], (0.37, 0.4), ha='right', size=18, color='0.7')
ax.annotate(seq[j:], (0.63, 0.4), ha='left', size=18, color='0.7')
Expand Down
2 changes: 1 addition & 1 deletion sugar/tests/test_core_cane.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def test_translate_final_stop():
assert str(seq.copy().translate(final_stop=True))[-1] == '*'
assert len(seq.copy().translate(final_stop=True)) == 2

# TODO more tranlsation tests
# TODO more translation tests

0 comments on commit c135aa5

Please sign in to comment.