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

Add Python CSR wake plotting test. #696

Merged
merged 6 commits into from
Oct 10, 2024

Conversation

cemitch99
Copy link
Member

@cemitch99 cemitch99 commented Sep 5, 2024

This adds a Python plotting script for the CSR wakefield in tests/python, as a follow-up to PR#627. The original author is xbojanic.

cemitch99 and others added 2 commits September 5, 2024 15:43
Remove unnecessary print statements.
tests/python/test_wake.py Fixed Show fixed Hide fixed
Copy link
Member Author

@cemitch99 cemitch99 left a comment

Choose a reason for hiding this comment

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

Locally, this gives me:

NO mpi4py load
Segmentation fault: 11

even if I comment lines 141-144.

@ax3l
Copy link
Member

ax3l commented Oct 9, 2024

Can you try if the standalone run of the test via pytest works locally?
https://github.com/AMReX-Codes/pyamrex?tab=readme-ov-file#test

@ax3l ax3l force-pushed the csr_python_plot_test branch 2 times, most recently from be7e1f7 to b5f7547 Compare October 10, 2024 06:11
@ax3l ax3l self-assigned this Oct 10, 2024
Standalone and PyTest
@ax3l ax3l enabled auto-merge (squash) October 10, 2024 06:14
@ax3l ax3l merged commit 25b91f6 into ECP-WarpX:development Oct 10, 2024
16 checks passed
@cemitch99
Copy link
Member Author

Yes, this test passes if I run it locally via pytest, as expected. The saved png files may be deleted on completion--is there a way to run via pytest and also view the generated png files?

@ax3l
Copy link
Member

ax3l commented Oct 10, 2024

Good question. I have to google that for pytest.

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.

3 participants