Skip to content

Add total as alias for _GLOBAL in analyze#23

Merged
fsimonis merged 1 commit intoprecice:mainfrom
AdityaGupta716:p1
Feb 27, 2026
Merged

Add total as alias for _GLOBAL in analyze#23
fsimonis merged 1 commit intoprecice:mainfrom
AdityaGupta716:p1

Conversation

@AdityaGupta716
Copy link
Contributor

Fixes #18

Problem

The total event shown in the tabular view is stored internally as _GLOBAL.
When a user passed --event total, it failed to match correctly because the
lookup compared against the raw internal name in the database.

Fix

Added a translation at the start of analyzeCommand that maps the display
name total back to the internal name _GLOBAL before any lookup is performed.

Now both of these work correctly:

  • precice-cli profiling analyze <participant> --event total
  • precice-cli profiling analyze <participant> --event _GLOBAL

@AdityaGupta716
Copy link
Contributor Author

@IshaanDesai plz review

@IshaanDesai IshaanDesai requested a review from fsimonis February 27, 2026 13:55
@fsimonis fsimonis changed the title Fix: event total not working as alias for _GLOBAL in --event argument #18 Add total as alias for _GLOBAL in analyze Feb 27, 2026
@fsimonis fsimonis added the enhancement New feature or request label Feb 27, 2026
Copy link
Member

@fsimonis fsimonis left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@fsimonis fsimonis merged commit 36a96a2 into precice:main Feb 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event total seems to be accessible as _GLOBAL

2 participants