Skip to content

Commit

Permalink
Fix NumPy 2.0 test failures (#6966)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jul 10, 2024
1 parent 3736aa8 commit 5cc88ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions panel/tests/pane/test_vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,9 @@ def test_vtkvol_serialization_coherence(document, comm):
vd_f = p_f._get_volume_data()
vd_id = p_id._get_volume_data()
data_decoded = np.frombuffer(base64.b64decode(vd_c["buffer"]), dtype=vd_c["dtype"]).reshape(vd_c["dims"], order="F")
assert np.alltrue(data_decoded==data_matrix)
assert (data_decoded==data_matrix).all()
assert vd_id == vd_c == vd_f



p_c_ds = VTKVolume(data_matrix_c, origin=origin, spacing=spacing, max_data_size=0.1)
p_f_ds = VTKVolume(data_matrix_f, origin=origin, spacing=spacing, max_data_size=0.1)
p_id_ds = VTKVolume(image_data, max_data_size=0.1)
Expand Down
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ipywidgets = "*"
ipywidgets_bokeh = "*"
jupyter_bokeh = ">=3.0.7"
networkx = ">=2.5"
pydeck = "*"
pydeck = ">=0.8"
pyecharts = "*"
pygraphviz = "*"
pyinstrument = ">=4.0"
Expand Down

0 comments on commit 5cc88ee

Please sign in to comment.