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

L2SS-643: bug fixing

parent e527eee5
Branches
Tags
1 merge request!294Resolve L2SS-643 "Calculate beamlet bfweights"
...@@ -152,7 +152,7 @@ class Beamlet(opcua_device): ...@@ -152,7 +152,7 @@ class Beamlet(opcua_device):
real = numpy.array(unit * numpy.sin(phases), dtype=numpy.short) real = numpy.array(unit * numpy.sin(phases), dtype=numpy.short)
imag = numpy.array(unit * numpy.cos(phases), dtype=numpy.short) imag = numpy.array(unit * numpy.cos(phases), dtype=numpy.short)
# join 16 bits of imaginary part (MSB) with 16 bits of real part (LSB) # 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 ) ) bf_weights = numpy.array( numpy.frombuffer( b''.join([imag,real]), dtype=numpy.uint32 ) )
return bf_weights return bf_weights
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment