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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_wake.py
Remove unnecessary print statements.
cemitch99 authored Sep 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 32dc88604ddb13fa7f3bfb8e2be048aa2181f8fa
6 changes: 0 additions & 6 deletions tests/python/test_wake.py
Original file line number Diff line number Diff line change
@@ -40,8 +40,6 @@ def test_wake(save_png=True):
bin_min = t_min
bin_max = t_max
bin_size = (bin_max - bin_min) / (num_bins - 1)
print("t_min, t_max, sigma_t = ")
print(t_min, t_max, sigma_t)

# Create charge_distribution and slopes as PODVector_real_std
charge_distribution = PODVector_real_std(num_bins + 1)
@@ -70,10 +68,6 @@ def test_wake(save_png=True):
bin_min, bin_max, len(charge_distribution_np)
)
plt.figure()
print("Length density s values = ")
print(len(charge_distribution_np))
print("Length density values = ")
print(len(charge_distribution_np))
plt.plot(charge_distribution_s_values, charge_distribution_np)
plt.xlabel("Longitudinal Position s (m)")
plt.ylabel("Charge density")