Skip to content

Silence TMVA SOFIE tutorial warnings from third party libraries#22144

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

Silence TMVA SOFIE tutorial warnings from third party libraries#22144
guitargeek wants to merge 3 commits intoroot-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
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.
@guitargeek guitargeek force-pushed the tmva_tutorial_warnings branch from a4c3694 to 35ef191 Compare May 5, 2026 11:36
guitargeek added 2 commits May 5, 2026 14:15
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 35ef191 to 72db81c Compare May 5, 2026 12:15
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Test Results

    22 files      22 suites   3d 10h 16m 2s ⏱️
 3 850 tests  3 850 ✅ 0 💤 0 ❌
76 025 runs  76 025 ✅ 0 💤 0 ❌

Results for commit 72db81c.

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