Skip to content

Commit 14e3e99

Browse files
committed
ruff and black
1 parent 382ce6f commit 14e3e99

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

esis/flights/f2/optics/_instruments/_instruments.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def design_guess(
151151
152152
Examples
153153
--------
154-
155154
Plot a spot diagram for this design.
156155
157156
.. jupyter-execute::
@@ -171,7 +170,6 @@ def design_guess(
171170
172171
Notes
173172
-----
174-
175173
Let :math:`\mathbf{a}` be the vector pointing from the apex of the grating
176174
to the center of the field stop, and let :math:`\mathbf{b}_i` be the vector
177175
pointing from the apex of the grating to target location of wavelength
@@ -339,7 +337,11 @@ def design_guess(
339337

340338
R = r_A * (np.cos(alpha) + np.cos(beta)) * M_c / (1 + M_c)
341339

342-
sigma_1 = -(np.square(np.cos(alpha)) / r_A + np.square(np.cos(beta)) / r_B - (np.cos(alpha) + np.cos(beta)) / R) / (m * (w1 + w2) / 2)
340+
sigma_1 = -(
341+
np.square(np.cos(alpha)) / r_A
342+
+ np.square(np.cos(beta)) / r_B
343+
- (np.cos(alpha) + np.cos(beta)) / R
344+
) / (m * (w1 + w2) / 2)
343345

344346
d_1 = -sigma_1 * np.square(d)
345347

0 commit comments

Comments
 (0)