Skip to content

Commit

Permalink
more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Aug 18, 2024
1 parent fddaeb1 commit baa7be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chalk/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def from_point(point: P2_t) -> Path:


def from_text(s: str) -> Path:
return Path((), Text(tx.np.array(list(s), dtype="S1")))
return Path((), Text(tx.np.array(list(s), dtype="U1")))


def from_pairs(segs: List[Tuple[P2_t, P2_t]], closed: bool = False) -> Path:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ colour
imageio
jaxtyping
numpy
IPython
jax
chex
typing-extensions
Expand Down

0 comments on commit baa7be3

Please sign in to comment.