From 2d7ec327b7bc6dda03aebf5ecdfecb8ea081835b Mon Sep 17 00:00:00 2001 From: Sandor Kertesz Date: Mon, 3 Feb 2025 16:14:49 +0000 Subject: [PATCH] Fix plugins --- src/earthkit/regrid/interpolators/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/earthkit/regrid/interpolators/__init__.py b/src/earthkit/regrid/interpolators/__init__.py index 4211281..3c8a2ca 100644 --- a/src/earthkit/regrid/interpolators/__init__.py +++ b/src/earthkit/regrid/interpolators/__init__.py @@ -29,6 +29,9 @@ class Interpolator(metaclass=ABCMeta): path_config_key = None enabled = True + def __init__(self, *args, **kwargs): + pass + @abstractmethod def interpolate(self, values, in_grid, out_grid, method, **kwargs): pass @@ -294,7 +297,7 @@ def _init_interpolators(self): self.INTERPOLATORS[key] = LazyInterpolator(name) # plugins - for name, v in MAKER.plugin_names(): + for name in MAKER.plugin_names(): key = InterpolatorKey(name, None, None, True) if key not in self.INTERPOLATORS: LOG.debug(" add:", key)