From fe0bfad4ed62fc71591624d1e0604f081434a75c Mon Sep 17 00:00:00 2001 From: pfebrer <42074085+pfebrer@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:39:24 +0200 Subject: [PATCH] Fixing failing test --- src/sisl/viz/processors/tests/test_geometry.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sisl/viz/processors/tests/test_geometry.py b/src/sisl/viz/processors/tests/test_geometry.py index b9e590fc78..66116c344d 100644 --- a/src/sisl/viz/processors/tests/test_geometry.py +++ b/src/sisl/viz/processors/tests/test_geometry.py @@ -266,7 +266,6 @@ def some_property(geometry, bonds): ), f"Wrong value for {k}" -@pytest.mark.xfail(reason="unknown failure on minimal version dependencies") def test_add_xyz_to_bonds_dataset(geometry): bonds = find_all_bonds(geometry, 1.5) @@ -275,7 +274,7 @@ def test_add_xyz_to_bonds_dataset(geometry): assert isinstance(xyz_bonds, xr.Dataset) assert "xyz" in xyz_bonds.data_vars assert xyz_bonds.xyz.shape == (len(bonds.bonds), 2, 3) - assert np.allclose(xyz_bonds.xyz[:, 0], geometry.xyz[bonds.bonds[:, 0]]) + assert np.allclose(xyz_bonds.xyz[:, 0], geometry.xyz[np.ravel(bonds.bonds[:, 0])]) def test_sanitize_bonds_selection(geometry):