Skip to content
Snippets Groups Projects
Commit 7ef4838d authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-643: fix Euler formula

parent ec520b41
No related branches found
No related tags found
1 merge request!294Resolve L2SS-643 "Calculate beamlet bfweights"
......@@ -149,8 +149,8 @@ class Beamlet(opcua_device):
# Convert array values in complex numbers
unit = numpy.power(2,14)
real = numpy.array(unit * numpy.sin(phases), dtype=numpy.short)
imag = numpy.array(unit * numpy.cos(phases), dtype=numpy.short)
real = numpy.array(unit * numpy.cos(phases), dtype=numpy.short)
imag = numpy.array(unit * numpy.sin(phases), dtype=numpy.short)
# join 16 bits of imaginary part (MSB) with 16 bits of real part (LSB)
bf_weights = numpy.array( numpy.frombuffer( b''.join([imag,real]), dtype=numpy.uint32 ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment