mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-10-28 19:01:36 +01:00
'.'
This commit is contained in:
1 parent
2db49807d3
commit
5d4fba7819
1 file changed
+1
@@ -30,6 +30,7 @@ def apply_linear_polarizer(probe, polarizer, multiple_modes=True, transpose=True
|
||||
"""
|
||||
|
||||
if len(polarizer.shape) == 1:
|
||||
print('polarizer', polarizer)
|
||||
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