Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jax breakage (assert_trees_all_close fail for Jax tensor), remove chex dep #155

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ dev = [
"pylint>=2.6.0",
"pyink",
# Lazy deps
"chex",
"jax[cpu]",
"jupyter",
"tf-nightly",
Expand Down
7 changes: 2 additions & 5 deletions visu3d/plotly/fig_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Tests for plotly."""

from __future__ import annotations

import chex
import dataclass_array as dca
from etils import enp
import numpy as np
Expand All @@ -28,7 +25,7 @@

@enp.testing.parametrize_xnp()
def test_to_xyz_dict(xnp: enp.NpModule):
chex.assert_trees_all_close(
dca.testing.assert_allclose(
v3d.plotly.to_xyz_dict([
[0, 1, 2],
[0, 10, 20],
Expand All @@ -41,7 +38,7 @@ def test_to_xyz_dict(xnp: enp.NpModule):
},
)

chex.assert_trees_all_close(
dca.testing.assert_allclose(
v3d.plotly.to_xyz_dict(
[
[0, 1, 2],
Expand Down
Loading