Skip to content

Commit

Permalink
fix(graphs): make exception agnostic of zarr version (#152)
Browse files Browse the repository at this point in the history
* fix(graphs): make expection agnostic of zarr version
  • Loading branch information
JPXKQX authored Feb 24, 2025
1 parent 505d084 commit f26adc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphs/tests/nodes/test_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import pytest
import torch
import zarr
from torch_geometric.data import HeteroData

from anemoi.graphs.nodes.attributes import SphericalAreaWeights
Expand All @@ -29,7 +28,7 @@ def test_init(mocker, mock_zarr_dataset):
def test_fail():
"""Test ZarrDatasetNodes with invalid dataset."""
node_builder = from_file.ZarrDatasetNodes("invalid_path.zarr", name="test_nodes")
with pytest.raises(zarr.errors.PathNotFoundError):
with pytest.raises(Exception):
node_builder.update_graph(HeteroData())


Expand Down

0 comments on commit f26adc9

Please sign in to comment.