Skip to content

Fix silent failure in analysis_default_regression.py#6812

Merged
lucafedeli88 merged 1 commit intoBLAST-WarpX:developmentfrom
EZoni:analysis_default_regression_exit
Apr 28, 2026
Merged

Fix silent failure in analysis_default_regression.py#6812
lucafedeli88 merged 1 commit intoBLAST-WarpX:developmentfrom
EZoni:analysis_default_regression_exit

Conversation

@EZoni
Copy link
Copy Markdown
Member

@EZoni EZoni commented Apr 27, 2026

Overview

This fixes a silent failure on format detection in analysis_default_regression.py. If both yt and openPMD attempts fail, the code printed a message but continued execution. Depending on what follows, this could lead to a confusing downstream error or silent misbehavior.

The issue came up in #6801 (comment) as part of #6801.

Notes

I added a few empty lines to improve readability as well.

@EZoni EZoni requested review from ax3l and lucafedeli88 April 27, 2026 20:41
@EZoni EZoni added bug Something isn't working component: tests Tests and CI bug: affects latest release Bug also exists in latest release version labels Apr 27, 2026
Copy link
Copy Markdown
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Thanks, @EZoni . LGTM

@lucafedeli88 lucafedeli88 merged commit 8f44744 into BLAST-WarpX:development Apr 28, 2026
47 of 48 checks passed
ax3l pushed a commit that referenced this pull request Apr 28, 2026
## Overview

Follow up on #6812 and clean up the code that handles the detection of
the output format in the default regression analysis script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: affects latest release Bug also exists in latest release version bug Something isn't working component: tests Tests and CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants