Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Expressions] Fixes the test failure #12164

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

sunethwarna
Copy link
Member

@sunethwarna sunethwarna commented Mar 7, 2024

📝 Description
Expression::Utils::NormInf test was failing when the numpy array generated was of zero size because, numpy.linalg.norm(ord=numpy.inf) throws an error when used with zero shape numpy arrays. This PR fixes it.

Fixes and closes #12159. Thanks for the bug report @ddiezrod :)

@ddiezrod Could you check whether this fixes your CI problems? Thanks.

🆕 Changelog

  • Fixes bug in numpy norm inf test

@sunethwarna sunethwarna added Kratos Core FastPR This Pr is simple and / or has been already tested and the revision should be fast Bugfix labels Mar 7, 2024
@sunethwarna sunethwarna self-assigned this Mar 7, 2024
@sunethwarna sunethwarna requested a review from a team as a code owner March 7, 2024 19:46
@sunethwarna sunethwarna added Python Parallel-MPI Distributed memory parallelism for HPC / clusters labels Mar 7, 2024
Copy link
Contributor

@ddiezrod ddiezrod left a comment

Choose a reason for hiding this comment

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

Thanks a lot @sunethwarna

@sunethwarna sunethwarna merged commit d6169b8 into master Mar 8, 2024
16 of 17 checks passed
@sunethwarna sunethwarna deleted the core/expression/fix_norm_inf_bug_wt_numpy branch March 8, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix FastPR This Pr is simple and / or has been already tested and the revision should be fast Kratos Core Parallel-MPI Distributed memory parallelism for HPC / clusters Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container expressions - Test failing with 8 cores
2 participants