Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further br fixes #2106

Merged
merged 2 commits into from
Mar 28, 2024
Merged

Further br fixes #2106

merged 2 commits into from
Mar 28, 2024

Conversation

RobinL
Copy link
Member

@RobinL RobinL commented Mar 27, 2024

These fixes apply to the 'beta' (private) auto-blocking functions which I added

@RobinL RobinL changed the base branch from splink4_dev to blocking_rule_fixes March 27, 2024 19:16
if len(cols_as_string) == 0:
return block_on("1")
br: BlockingRuleCreator = CustomRule("1=1", linker._sql_dialect)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type hint was needed for mypy, without it you got an splink/find_brs_with_comparison_counts_below_threshold.py:75: error: Incompatible types in assignment (expression has type "BlockingRuleCreator", variable has type "CustomRule") [assignment] error

@@ -258,3 +258,19 @@ def count_comparisons_from_blocking_rule_pre_filter_conditions_sqls(
sqls.append({"sql": sql, "output_table_name": "__splink__total_of_block_counts"})

return sqls


def count_comparisons_from_blocking_rule_pre_filter_conditions(
Copy link
Member Author

@RobinL RobinL Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved out of linker to reduce line count and so it can be more easily called from elsewhere

@RobinL RobinL requested a review from ADBond March 27, 2024 19:20
Copy link
Contributor

@ADBond ADBond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Base automatically changed from blocking_rule_fixes to splink4_dev March 28, 2024 05:44
@RobinL RobinL merged commit a35d4bb into splink4_dev Mar 28, 2024
11 checks passed
@RobinL RobinL deleted the further_br_fixes branch March 28, 2024 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants