From 775a508d8b27a381cf15fef6861df2bb51e2ddee Mon Sep 17 00:00:00 2001 From: Alessandro Amici Date: Mon, 5 Nov 2018 12:46:10 +0100 Subject: [PATCH] Drop the hack needed to use CachingFileManager as we don't use it anymore. --- xarray/backends/cfgrib_.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xarray/backends/cfgrib_.py b/xarray/backends/cfgrib_.py index 37d86d8a427..0807900054a 100644 --- a/xarray/backends/cfgrib_.py +++ b/xarray/backends/cfgrib_.py @@ -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):