From 39ee3327fc34db77889090921e62e5cda2b13151 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 30 Aug 2024 11:45:27 +0200 Subject: [PATCH] small bug --- skgstat/Variogram.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/skgstat/Variogram.py b/skgstat/Variogram.py index ee8d43a..38ebdc0 100644 --- a/skgstat/Variogram.py +++ b/skgstat/Variogram.py @@ -1149,10 +1149,7 @@ def dist_function(self): @classmethod def wrapped_distance_function(cls, dist_func, x, **kwargs): - if callable(dist_func): - return dist_func(x, **kwargs) - else: - return pdist(X=x, metric=dist_func, **kwargs) + return pdist(X=x, metric=dist_func, **kwargs) @dist_function.setter def dist_function(self, func):