corrected pylint errors
@@ -5,11 +5,11 @@ Module for interpolating, smoothing and re-sampling features in EOPatch
import warnings
import datetime as dt
import inspect
+from functools import partial
import dateutil
import scipy.interpolate
import numpy as np
-from functools import partial
from sklearn.gaussian_process import GaussianProcessRegressor
from eolearn.core import EOTask, EOPatch, FeatureType, FeatureTypeSet
@@ -295,7 +295,6 @@ class InterpolationTask(EOTask):
"""
if str(inspect.getmodule(self.interpolation_object))[9:14] == 'numpy':
return partial(self.interpolation_object, xp=times, fp=series, left=np.nan, right=np.nan)
- else:
return self.interpolation_object(times, series, **self.interpolation_parameters)
def get_resampled_timestamp(self, timestamp):
