Skip to content

Commit

Permalink
Fixes for jax_dataclasses API change
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jun 2, 2021
1 parent 7f45ef3 commit 7cd3e37
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jaxlie/_se2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
tangent_dim=3,
space_dim=2,
)
@jax_dataclasses.dataclass
@jax_dataclasses.pytree_dataclass
class SE2(_base.SEBase[SO2]):
"""Special Euclidean group for proper rigid transforms in 2D."""

Expand Down
2 changes: 1 addition & 1 deletion jaxlie/_se3.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _skew(omega: hints.Vector) -> hints.MatrixJax:
tangent_dim=6,
space_dim=3,
)
@jax_dataclasses.dataclass
@jax_dataclasses.pytree_dataclass
class SE3(_base.SEBase[SO3]):
"""Special Euclidean group for proper rigid transforms in 3D."""

Expand Down
2 changes: 1 addition & 1 deletion jaxlie/_so2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
tangent_dim=1,
space_dim=2,
)
@jax_dataclasses.dataclass
@jax_dataclasses.pytree_dataclass
class SO2(_base.SOBase):
"""Special orthogonal group for 2D rotations."""

Expand Down
2 changes: 1 addition & 1 deletion jaxlie/_so3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
tangent_dim=3,
space_dim=3,
)
@jax_dataclasses.dataclass
@jax_dataclasses.pytree_dataclass
class SO3(_base.SOBase):
"""Special orthogonal group for 3D rotations."""

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"jax",
"jaxlib",
"numpy",
"jax_dataclasses",
"jax_dataclasses>=1.0.0",
# `overrides` should not be updated until the following issues are resolved:
# > https://github.com/mkorpela/overrides/issues/65
# > https://github.com/mkorpela/overrides/issues/63
Expand Down

0 comments on commit 7cd3e37

Please sign in to comment.