Skip to content

Commit

Permalink
Merge pull request #189 from HULO-ai/bug/wrapped_distance_function_va…
Browse files Browse the repository at this point in the history
…riogram

Bug/wrapped distance function variogram
  • Loading branch information
mmaelicke authored Sep 2, 2024
2 parents a8b809b + 39ee332 commit c2a5e6b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions skgstat/Variogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c2a5e6b

Please sign in to comment.