Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
emfdavid committed Dec 18, 2024
1 parent 2765eda commit 84de0be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test__grib_idx.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import numpy as np
import pandas as pd
import xarray as xr
import yaml

from kerchunk.grib2 import (
scan_grib,
grib_tree,
Expand Down Expand Up @@ -666,19 +668,20 @@ def _reinflate_grib_store(
with fsspec.open(test_path, "r") as f:
expected_keys = ujson.loads(f.read())

if key_set != expected_keys:
print("hello")

self.assertListEqual(key_set, expected_keys)

def test_reinflate_grib_store(self):
logger.warning(f"python: {sys.version}")
logger.warning(f"numpy: {np.__version__}")
logger.warning(f"pandas: {pd.__version__}")
logger.warning(f"xarray: {xr.__version__}")
logger.warning(f"fsspec: {fsspec.__version__}")
logger.warning(f"gcsfs: {gcsfs.__version__}")
logger.warning(f"eccodes: {eccodes.__version__}")
logger.warning(f"cfgrib: {cfgrib.__version__}")
logger.warning(f"Sys Path: {sys.path}")
np_config = np.show_config(mode="dicts")
logger.warning(f"np config: {yaml.dump(np_config)}")

for dataset in self._reinflate_grib_store_dataset():
for aggregation, axes in self._reinflate_grib_store_aggregation():
Expand Down

0 comments on commit 84de0be

Please sign in to comment.