Skip to content

Commit

Permalink
changed variable name to allow for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Philipp Reising committed May 30, 2024
1 parent 6c76eb9 commit 9677d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astrocast/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -2825,7 +2825,7 @@ def run_terahac(self, similarity_matrix: np.ndarray,

@wrapper_local_cache
def distance_to_similarity(self, distance_matrix, method: Literal['inverse', 'gaussian'] = 'gaussian', sigma=1.0,
inplace=False, ignore_cache: bool = False):
return_same: bool = False, ignore_cache: bool = False):
"""
Convert a distance matrix to a similarity matrix using the specified method.
Expand All @@ -2849,7 +2849,7 @@ def distance_to_similarity(self, distance_matrix, method: Literal['inverse', 'ga
>>> similarity_matrix = TeraHAC.distance_to_similarity(distance_matrix, method='gaussian', sigma=1.0)
"""

if inplace:
if return_same is not None:

similarity_matrix = distance_matrix

Expand Down

0 comments on commit 9677d6a

Please sign in to comment.