Skip to content

Commit

Permalink
Merge pull request #2152 from moj-analytical-services/bugfix_predict_…
Browse files Browse the repository at this point in the history
…threshold

Minor bug in filtering predict table
  • Loading branch information
RobinL authored Apr 25, 2024
2 parents f1e44d2 + ebba34b commit 86f955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion splink/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def predict_from_comparison_vectors_sqls(
thres_prob_as_weight = prob_to_match_weight(threshold_match_probability)
else:
thres_prob_as_weight = None
if threshold_match_probability or threshold_match_weight:
if threshold_match_probability is not None or threshold_match_weight is not None:
thresholds = [
thres_prob_as_weight,
threshold_match_weight,
Expand Down

0 comments on commit 86f955c

Please sign in to comment.