Skip to content

Commit

Permalink
Drop the hack needed to use CachingFileManager as we don't use it any…
Browse files Browse the repository at this point in the history
…more. (#2544)
  • Loading branch information
alexamici authored and Joe Hamman committed Nov 6, 2018
1 parent ee5983a commit eece515
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions xarray/backends/cfgrib_.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ def __init__(self, filename, lock=None, **backend_kwargs):
if lock is None:
lock = ECCODES_LOCK
self.lock = ensure_lock(lock)

# NOTE: filter_by_keys is a dict, but CachingFileManager only accepts
# hashable types.
if 'filter_by_keys' in backend_kwargs:
filter_by_keys_items = backend_kwargs['filter_by_keys'].items()
backend_kwargs['filter_by_keys'] = tuple(filter_by_keys_items)

self.ds = cfgrib.open_file(filename, **backend_kwargs)

def open_store_variable(self, name, var):
Expand Down

0 comments on commit eece515

Please sign in to comment.