Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent fea841c commit 8b1ed60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/aperture/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ We run the following script to analyze correctness:
Aperture Collimation with Periodic Masking
===========================================

Proton beam undergoing collimation by a periodic array of rectangular apertures, such as those used in a pepperpot emittance measurement.
Proton beam undergoing collimation by a periodic array of rectangular apertures, such as those used in a pepperpot emittance measurement.

We use a 250 MeV proton beam with a horizontal rms beam size of 1.56 mm and a vertical rms beam size of 2.21 mm.

Expand Down Expand Up @@ -101,4 +101,3 @@ We run the following script to analyze correctness:
.. literalinclude:: analysis_aperture_pepperpot.py
:language: python3
:caption: You can copy this file from ``examples/aperture/analysis_aperture_pepperpot.py``.

1 change: 0 additions & 1 deletion examples/aperture/analysis_aperture_pepperpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,3 @@ def get_moments(beam):
print(f" y_max={particles_lost['position_y'].max()}")
print(f" y_min={particles_lost['position_y'].min()}")
assert np.greater_equal(dy.max(), 0.0)

7 changes: 6 additions & 1 deletion examples/aperture/run_aperture_pepperpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@
monitor,
elements.Drift(name="drift", ds=0.123),
elements.Aperture(
name="pepperpot", xmax=1.5e-4, ymax=1.0e-4, repeat_x=1.0e-3, repeat_y=1.0e-3, shape="rectangular"
name="pepperpot",
xmax=1.5e-4,
ymax=1.0e-4,
repeat_x=1.0e-3,
repeat_y=1.0e-3,
shape="rectangular",
),
monitor,
]
Expand Down

0 comments on commit 8b1ed60

Please sign in to comment.