Skip to content

Silence TMVA SOFIE tutorial warnings from third party libraries#22144

Open
guitargeek wants to merge 3 commits into
root-project:masterfrom
guitargeek:tmva_tutorial_warnings
Open

Silence TMVA SOFIE tutorial warnings from third party libraries#22144
guitargeek wants to merge 3 commits into
root-project:masterfrom
guitargeek:tmva_tutorial_warnings

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

Keras and PyTorch still cause some warnings in a few places where they use deprecated features from their dependencies. We need a mechanism to silence these warnings to that our tests will run with warnings as errors, while also making sure we catch when the warnings don't happen anymore, so we can remove the boilerplate code for warnings silencing.

With this change, we are working towards:

@guitargeek guitargeek requested a review from lmoneta May 5, 2026 09:29
@guitargeek guitargeek self-assigned this May 5, 2026
@guitargeek guitargeek requested a review from couet as a code owner May 5, 2026 09:29
@guitargeek guitargeek force-pushed the tmva_tutorial_warnings branch 2 times, most recently from 35ef191 to 72db81c Compare May 5, 2026 12:15
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Test Results

    20 files      20 suites   3d 0h 46m 24s ⏱️
 3 860 tests  3 860 ✅ 0 💤 0 ❌
69 621 runs  69 621 ✅ 0 💤 0 ❌

Results for commit bccc598.

♻️ This comment has been updated with latest results.

User-facing code like tutorials should be nicely formatted, in
particular avoiding non-standard indentations with three spaces that can
annoy users when copy-pasting code.
Keras and PyTorch still cause some warnings in a few places where they
use deprecated features from their dependencies. We need a mechanism to
silence these warnings to that our tests will run with warnings as
errors, while also making sure we catch when the warnings don't happen
anymore, so we can remove the boilerplate code for warnings silencing.
In particular, replace `raiseError` which is only available in pytest
fixtures.
@guitargeek guitargeek force-pushed the tmva_tutorial_warnings branch from 72db81c to bccc598 Compare June 1, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant