Commit 905ac48c authored by Craig Cahillane's avatar Craig Cahillane 🌙

Altered the gouy() function in pykat/optics/gaussian_beams.py so that the...

Altered the gouy() function in pykat/optics/gaussian_beams.py so that the q-parameter calculation is now correct. (Line 148 is now the same as Line 123)
parent bd0ea94e
......@@ -145,7 +145,7 @@ class BeamParam(object):
else:
w0 = np.array(w0)
q = z + 1j * math.pi * w0 **2 / (wavelength*nr)
q = z + 1j * math.pi * w0 **2 / (wavelength/nr)
return np.arctan2(q.real, q.imag)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment