Skip to content

Commit

Permalink
Scans over cavity parameters to find issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jank324 committed Sep 11, 2023
1 parent 26a88c7 commit 93fe74d
Show file tree
Hide file tree
Showing 2 changed files with 599 additions and 57 deletions.
2 changes: 1 addition & 1 deletion cheetah/dontbmad.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def convert_element(name: str, context: dict) -> "cheetah.Element":
length=bmad_parsed["l"],
voltage=bmad_parsed["voltage"] if "voltage" in bmad_parsed else 0.0,
phase=(
np.degrees(bmad_parsed["phi0"] * 2 * np.pi)
-np.degrees(bmad_parsed["phi0"] * 2 * np.pi)
if "phi0" in bmad_parsed
else 0.0
),
Expand Down
654 changes: 598 additions & 56 deletions test_bmad.ipynb

Large diffs are not rendered by default.

0 comments on commit 93fe74d

Please sign in to comment.