Skip to content

Commit

Permalink
remove typing
Browse files Browse the repository at this point in the history
  • Loading branch information
emfdavid committed Nov 22, 2023
1 parent a7011a2 commit bf5e2b7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions kerchunk/grib2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import base64
import logging
from collections import defaultdict
from typing import Iterable, List, Dict, Set

# from typing import Iterable, List, Dict, Set

import ujson

Expand Down Expand Up @@ -361,11 +362,11 @@ def example_combine(


def grib_tree(
message_groups: Iterable[Dict],
concat_dims: List[str],
identical_dims: List[str],
message_groups,
concat_dims,
identical_dims,
remote_options=None,
) -> Dict:
):
"""
Create a single zarr hierarchy from a grib file with multiple levels. MultiZarrToZarr aggregation requires
picking filters for a particular set of GRIB levels. This method allows reading an entire grib file into
Expand Down Expand Up @@ -393,8 +394,8 @@ def grib_tree(
zroot = zarr.open_group(store=zarr_store)
result = dict(refs=zarr_store)

aggregations: Dict[str, List] = defaultdict(list)
aggregation_dims: Dict[str, Set] = defaultdict(set)
aggregations = defaultdict(list)
aggregation_dims = defaultdict(set)

unknown_counter = 0
for msg_ind, group in enumerate(message_groups):
Expand Down

0 comments on commit bf5e2b7

Please sign in to comment.