Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen committed Aug 31, 2024
1 parent 60814a6 commit aff8cfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtualizarr/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
@pytest.mark.parametrize(
"inline_threshold, vars_to_inline",
[
(5e2, ["lat", "lon"]),
(5e4, ["lat", "lon", "time"]),
(16, ["lat", "lon"]),
(5e3, ["lat", "lon", "time"]),
pytest.param(
5e7,
["lat", "lon", "time", "air"],
Expand All @@ -38,9 +38,11 @@ def test_numpy_arrays_to_inlined_kerchunk_refs(
refs = vds.virtualize.to_kerchunk(format="dict")
# TODO I would just compare the entire dicts but kerchunk returns inconsistent results - see https://github.com/TomNicholas/VirtualiZarr/pull/73#issuecomment-2040931202
# assert refs == expected

assert refs["refs"]["air/0.0.0"] == expected["refs"]["air/0.0.0"]
assert refs["refs"]["lon/0"] == expected["refs"]["lon/0"]
assert refs["refs"]["lat/0"] == expected["refs"]["lat/0"]

assert refs["refs"]["time/0"] == expected["refs"]["time/0"]


Expand Down

0 comments on commit aff8cfa

Please sign in to comment.