Skip to content

Commit

Permalink
Fix jax breakage (assert_trees_all_close fail for Jax tensor), remo…
Browse files Browse the repository at this point in the history
…ve chex dep

PiperOrigin-RevId: 691413236
  • Loading branch information
Conchylicultor authored and The visu3d Authors committed Oct 30, 2024
1 parent 0abeafc commit 6cca1ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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

0 comments on commit 6cca1ac

Please sign in to comment.