Skip to content

Commit

Permalink
Set default kernel
Browse files Browse the repository at this point in the history
--GR, DR
  • Loading branch information
Diego Ristè committed Mar 1, 2019
1 parent 3749e01 commit 8f09532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QGL/ChannelLibraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def new_X6(self, label, address, dsp_channel=0, record_length=1024, **kwargs):
# Add a default kernel
for chan in chans:
if chan.stream_type is "integrated":
chan.kernel = np.ones(record_length, dtype=np.complex).tobytes()
chan.kernel = np.ones(record_length)

self.add_and_update_dict(this_receiver)
return this_receiver
Expand Down Expand Up @@ -490,7 +490,7 @@ def set_measure(self, qubit, transmitter, receivers, generator=None, trig_channe
rcv_chan = receivers
else:
raise ValueError("In set_measure the Transmitter must have a single quadrature channel or a specific channel must be passed instead")

meas.receiver_chan = rcv_chan
self.add_and_update_dict([meas, trig_chan])

Expand Down

0 comments on commit 8f09532

Please sign in to comment.