Skip to content

Commit

Permalink
fix ordering - turn arg to match prob earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Nov 26, 2024
1 parent 14d9f9b commit 3ceddde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions splink/internals/linker_components/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ def cluster_pairwise_predictions_at_threshold(
c.unquote().name for c in df_predict.columns
]

threshold_match_probability = threshold_args_to_match_prob(
threshold_match_probability, threshold_match_weight
)

if not has_match_prob_col and threshold_match_probability is not None:
raise ValueError(
"df_predict must have a column called 'match_probability' if "
"threshold_match_probability is provided"
)

threshold_match_probability = threshold_args_to_match_prob(
threshold_match_probability, threshold_match_weight
)

match_p_expr = ""
match_p_select_expr = ""
if threshold_match_probability is not None:
Expand Down

0 comments on commit 3ceddde

Please sign in to comment.