Skip to content

[tmva][sofie] Handle out-of-range dynamic shape values - #23162

Merged
guitargeek merged 1 commit into
root-project:masterfrom
Yongyanliu65:patch-2
Aug 28, 2026
Merged

guitargeek merged 1 commit into
root-project:masterfrom
Yongyanliu65:patch-2

Conversation

@Yongyanliu65

Copy link
Copy Markdown
Contributor

Summary

Handle std::out_of_range when converting dynamic shape parameters
with std::stoi in ConvertShapeToInt.

Previously, a numeric parameter outside the range of int could propagate
an exception instead of following the existing conversion-failure path.

The function now clears the returned shape consistently for both
std::invalid_argument and std::out_of_range.

@Yongyanliu65
Yongyanliu65 requested a review from lmoneta as a code owner August 26, 2026 22:31
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 15h 13m 49s ⏱️
 3 859 tests  3 858 ✅ 0 💤 1 ❌
78 635 runs  78 628 ✅ 6 💤 1 ❌

For more details on these failures, see this check.

Results for commit 1219ab8.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@guitargeek
guitargeek merged commit 3af0de0 into root-project:master Aug 28, 2026
27 of 30 checks passed
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