Skip to content

Pr/1 ontology driven core#398

Closed
JessUWE wants to merge 75 commits into
mainfrom
pr/1-ontology-driven-core
Closed

Pr/1 ontology driven core#398
JessUWE wants to merge 75 commits into
mainfrom
pr/1-ontology-driven-core

Conversation

@JessUWE

@JessUWE JessUWE commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jim-smith and others added 30 commits March 16, 2026 15:34
acro tables using redaction data falling in vulnerable cells
also creating variable metadata
…ven refactoring

This commit restores critical module-level constants and functions that were
removed during the ontology-driven refactoring but are still required by
existing code and tests.

Added:
- AGGFUNC: Dictionary mapping aggregation function names to implementations
- CHECK_MISSING_VALUES: Flag for missing value checking
- ZEROS_ARE_DISCLOSIVE: Flag for zero disclosure control
- align_masks(): Function to align suppression masks to table structure
- apply_suppression(): Function to apply suppression to tables
- create_dataframe(): Helper function to combine index and columns
- _align_mask_columns(): Helper for mask column alignment
- _broadcast_mask_to_multiindex(): Helper for mask replication
Removed unused aggregation function parameters and several mask-related functions to simplify the code.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Fix missing newline at end of file.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Ensure newline at end of file for consistency.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Ensure proper newline at the end of the file.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
pre-commit-ci Bot and others added 27 commits July 8, 2026 11:25
Refactored evidence accumulation logic in federated mode and removed redundant code.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Fix docstring formatting for agg_nk function.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Refactor docstrings for clarity and update mask_sdc initialization.

Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
Signed-off-by: Jessica Ikechukwu <Jessica.Ikechukwu@uwe.ac.uk>
•⁠  ⁠Extract _add_federated_output/_add_standalone_output helpers in
  acro_regression.py to eliminate repeated federated/standalone branching
•⁠  ⁠Clean up finalise_evidence() interface: accept evidence dict directly
  instead of relying on hidden _federated_evidence_store attribute
•⁠  ⁠Replace print() calls with logger.debug/warning in acro_stata_parser
  and ontology_handler; remove T201 global ignore from pyproject.toml
•⁠  ⁠Split test_initial.py into test_regressions.py, test_plots.py, and
  test_federated.py for better test organisation
•⁠  ⁠Fix pre-commit issues: codespell typo, stray print, inline import
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.73524% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.23%. Comparing base (d0cacce) to head (818138e).

Files with missing lines Patch % Lines
acro/table_utils.py 97.68% 7 Missing ⚠️
acro/acro_regression.py 95.77% 3 Missing ⚠️
acro/acro_tables.py 98.32% 3 Missing ⚠️
acro/record.py 97.14% 1 Missing ⚠️
acro/sdcchecks.py 99.64% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #398      +/-   ##
==========================================
- Coverage   99.75%   99.23%   -0.52%     
==========================================
  Files          10       16       +6     
  Lines        1602     2094     +492     
==========================================
+ Hits         1598     2078     +480     
- Misses          4       16      +12     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JessUWE JessUWE closed this Jul 14, 2026
@JessUWE JessUWE deleted the pr/1-ontology-driven-core branch July 14, 2026 14:34
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