mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-11 16:53:57 +01:00
'.'
This commit is contained in:
1 parent
332541c951
commit
061b7f647a
1 file changed
+1
-1
@@ -29,7 +29,7 @@ def apply_linear_polarizer(probe, polarizer, multiple_modes=True, transpose=True
|
||||
(N)(P)x2x1xMxL
|
||||
"""
|
||||
|
||||
if len(polarizer) == 1:
|
||||
if len(polarizer.shape) == 1:
|
||||
theta = math.radians(polarizer)
|
||||
jones_matrices = t.tensor([[(cos(theta)) ** 2, sin(2 * theta) / 2], [sin(2 * theta) / 2, sin(theta) ** 2]]).to(dtype=t.cfloat)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user