Skip to content

Commit

Permalink
add kerchunk dep and add 1d coord test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushnag committed Oct 30, 2024
1 parent fc53633 commit 164e313
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion virtualizarr/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,13 @@ def test_coordinate_variable_attrs_preserved(self, netcdf4_file):
}


@requires_kerchunk
class TestDetermineCoords:
def test_determine_all_coords(self, netcdf4_file_with_2d_coords):
def test_infer_one_dimensional_coords(self, netcdf4_file):
vds = open_virtual_dataset(netcdf4_file, indexes={})
assert set(vds.coords) == {"time", "lat", "lon"}

def test_var_attr_coords(self, netcdf4_file_with_2d_coords):
vds = open_virtual_dataset(netcdf4_file_with_2d_coords, indexes={})

expected_dimension_coords = ["ocean_time", "s_rho"]
Expand Down

0 comments on commit 164e313

Please sign in to comment.