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

Adding test functions #82

Conversation

ColwynGulliford
Copy link
Contributor

@ColwynGulliford ColwynGulliford commented Oct 29, 2024

This file PR brings in functions for loading 3D CST data into a FieldMesh object as well as helper functions for checking that associated fields in the FieldMesh object satisfy Maxwell's equations.

This functionality was tested on 3 examples: 3D field map data from CST for the Cornell DC gun, 3D data for a 975 MHz kicker cavity from CERN, 3D field data for the Fermilab 7 cell accelerating cavity.

In addition, the helper functions were tested with the Cornell injector solenoid 2D map and a 2D 7 Cell Cornell MLC cavity map.

@ChristopherMayes
Copy link
Owner

The functions need docstrings

@ColwynGulliford
Copy link
Contributor Author

The functions need docstrings

Added!

@ChristopherMayes
Copy link
Owner

Remove the unchanged notebooks

@ColwynGulliford
Copy link
Contributor Author

Remove the unchanged notebooks

Done.

@ChristopherMayes
Copy link
Owner

[pmd_beamphysics/fields/analysis.py:726](http://localhost:8888/lab/tree/docs/examples/fields/pmd_beamphysics/fields/analysis.py#line=725): SyntaxWarning: invalid escape sequence '\D' ax2.set_ylabel("$\Delta$ " + units)

@ChristopherMayes ChristopherMayes merged commit 0a5625a into ChristopherMayes:master Nov 8, 2024
7 checks passed
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.

2 participants