Skip to content

Commit

Permalink
Fix grib test using builtin datatree
Browse files Browse the repository at this point in the history
  • Loading branch information
emfdavid committed Oct 30, 2024
1 parent 514cf12 commit c9ac3ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kerchunk/tests/test_grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import pandas as pd
import pytest
import xarray as xr
import datatree
import zarr
import ujson
from kerchunk.grib2 import (
Expand Down Expand Up @@ -271,7 +270,7 @@ def test_hrrr_sfcf_grib_datatree():
with open(fpath, "rb") as fobj:
scanned_msgs = ujson.load(fobj)
merged = grib_tree(scanned_msgs)
dt = datatree.open_datatree(
dt = xr.open_datatree(
fsspec.filesystem("reference", fo=merged).get_mapper(""),
engine="zarr",
consolidated=False,
Expand Down Expand Up @@ -349,7 +348,7 @@ def test_parse_grib_idx_content(idx_url, storage_options):
def zarr_tree_and_datatree_instance():
fn = os.path.join(here, "gfs.t00z.pgrb2.0p25.f006.test-limit-100")
tree_store = tree_store = grib_tree(scan_grib(fn))
dt_instance = datatree.open_datatree(
dt_instance = xr.open_datatree(
fsspec.filesystem("reference", fo=tree_store).get_mapper(""),
engine="zarr",
consolidated=False,
Expand Down

0 comments on commit c9ac3ff

Please sign in to comment.