Skip to content

Commit

Permalink
Fix plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz committed Feb 3, 2025
1 parent 4343a6c commit 2d7ec32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/earthkit/regrid/interpolators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2d7ec32

Please sign in to comment.