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

[Dashboard] Improved Simulation Output Logging #718

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

proy30
Copy link
Contributor

@proy30 proy30 commented Sep 27, 2024

PR improves existing simulation logging by displaying simulation diagnostics in the Trame xterm.

Note: The output is currently streamed to the Trame xterm only after the simulation has completed. The ideal behavior, where the contents are streamed progressively as the simulation runs, is still a work in progress.

Wurlitzer library utilized for this functionality.

Before HGMoRa0dnb
After chrome_odyapCQFWS

Improvement from current, however it would be ideal that the contents stream out on the terminal view as the simulation runs, not just at once when the simulation is completed.

Using wurlitzer library for this
@proy30 proy30 requested a review from ax3l September 27, 2024 05:06
@proy30 proy30 added the component: dashboard our browser based trame dashboard label Sep 27, 2024
@ax3l ax3l self-assigned this Oct 2, 2024
@ax3l
Copy link
Member

ax3l commented Oct 2, 2024

Thanks! I think we can alternatively solve this in pyAMReX modifying AMReX' amrex::system::osout and amrex::system::oserr. That would then also be useful for general pyAMReX/WarpX/ImpactX usage in Jupyter.

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

I took a look at the package and its implementation and it is ok to use this as a work-around for now :)

@ax3l ax3l merged commit 4a7da60 into ECP-WarpX:development Oct 2, 2024
16 checks passed
@proy30 proy30 deleted the dashboard/terminal_view branch October 2, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard our browser based trame dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants