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

fixing suppression when margins is true #199

Merged
merged 8 commits into from
Mar 8, 2024

Conversation

mahaalbashir
Copy link
Contributor

@mahaalbashir mahaalbashir commented Mar 4, 2024

This is to fix the crosstab. An issue was raised that when suppression is true and margins is true the cells that violate the rules are not being suppressed.

The problem stemmed from the process of recalculating totals. Initially, the function applied a list of boolean conditions for each true cell in the suppression masks to the dataset and then generated the crosstab. However, it missed applying suppression after calculating the crosstab. This was added in this PR.

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.63%. Comparing base (2273a3a) to head (bfa6696).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #199   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files           9        9           
  Lines        1086     1092    +6     
=======================================
+ Hits         1082     1088    +6     
  Misses          4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mahaalbashir mahaalbashir requested a review from jim-smith March 4, 2024 21:30
@jim-smith
Copy link
Contributor

@mahaalbashir shouldn't there be a test case for this?

@mahaalbashir mahaalbashir merged commit 4aa84d6 into main Mar 8, 2024
6 checks passed
@mahaalbashir mahaalbashir deleted the fixing_crosstab_suppression branch March 8, 2024 11:24
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.

2 participants