Skip to content

Conversation

@desilinguist
Copy link
Collaborator

  • Update the header notebooks for all tools to exclude the matplotlib and tqdm warnings that were being shown in all the reports.
  • Replace unnecessary use of resetwarnings() with the catch_warnings() context manager in fairness_utils.py. This is necessary to ensure that the filtering of warnings in notebooks works as expected.

To test this, please check out the branch, run an experiments for each of the command-line tools, and confirm that no warnings are shown in the reports.

This PR closes #618.

Update the header notebooks for all tools to exclude the matplotlib and tqdm warnings that were being shown in all the reports.
Replace unnecessary use of `resetwarnings()` with the `catch_warnings()` context manager.
This is necessary to ensure that the filtering of warnings in notebooks works as expected.
Copy link
Contributor

@tamarl08 tamarl08 left a comment

Choose a reason for hiding this comment

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

Tested all the reports and no warnings!

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (cf9e2a7) 95.88% compared to head (a0bf7db) 95.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #624   +/-   ##
=======================================
  Coverage   95.88%   95.88%           
=======================================
  Files          60       60           
  Lines        9356     9356           
=======================================
  Hits         8971     8971           
  Misses        385      385           
Files Changed Coverage Δ
rsmtool/fairness_utils.py 86.95% <100.00%> (ø)

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

@desilinguist desilinguist merged commit b1944e0 into main Jul 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the 618-fix-warnings-in-report branch July 27, 2023 22:48
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.

Fix matplotlib warnings in reports

4 participants