@@ -112,7 +112,7 @@ def length(self):
112
112
def length (self , value ):
113
113
self ._length = value
114
114
115
-
115
+
116
116
117
117
def preprocess (seqs , shapeLib , T ):
118
118
for seq in seqs :
@@ -163,11 +163,11 @@ def compress_sequences(seqs):
163
163
repl_seq = []
164
164
while length > MAX_TRIGGER_COUNT :
165
165
repl_entry = copy (seq [idx + skip ])
166
- repl_entry .length = MAX_TRIGGER_COUNT
166
+ repl_entry .length = MAX_TRIGGER_COUNT
167
167
repl_seq .append (repl_entry )
168
- length -= MAX_TRIGGER_COUNT
168
+ length -= MAX_TRIGGER_COUNT
169
169
final_entry = copy (seq [idx + skip ])
170
- final_entry .length = length
170
+ final_entry .length = length
171
171
repl_seq .append (final_entry )
172
172
seq [idx + skip :idx + skip + 1 ] = repl_seq
173
173
skip += len (repl_seq ) - 1
@@ -201,7 +201,7 @@ def wf_sig(wf):
201
201
wf .frequency )
202
202
203
203
204
- TAZShape = np .zeros (1 , dtype = np .complex )
204
+ TAZShape = np .zeros (1 , dtype = np .complex128 )
205
205
TAZKey = hash_pulse (TAZShape )
206
206
207
207
@@ -766,7 +766,7 @@ def read_sequence_file(fileName):
766
766
chanStrs = ['ch1' , 'ch2' , 'ch3' , 'ch4' ]
767
767
chanStrs2 = ['chan_1' , 'chan_2' , 'chan_3' , 'chan_4' ]
768
768
mrkStrs = ['ch1m1' , 'ch2m1' , 'ch3m1' , 'ch4m1' ]
769
-
769
+
770
770
data = {}
771
771
with open (fileName , 'rb' ) as FID :
772
772
target_hw = FID .read (4 ).decode ('utf-8' )
@@ -781,14 +781,14 @@ def read_sequence_file(fileName):
781
781
data [channel ]["isIQMode" ] = bool (struct .unpack ('?' , FID .read (1 ))[0 ])
782
782
wf_len = struct .unpack ('<Q' , FID .read (8 ))[0 ]
783
783
data [channel ]["waveformLib" ] = np .frombuffer (FID .read (2 * wf_len ), dtype = np .int16 )
784
-
784
+
785
785
has_LLs = [struct .unpack ('?' , FID .read (1 ))[0 ] for i in range (2 )]
786
786
for LLexists , chanct in zip (has_LLs , [0 ,2 ]):
787
787
if LLexists :
788
-
788
+
789
789
channel = channels [chanct ]
790
- numKeys = struct .unpack ('<Q' , FID .read (8 ))[0 ]
791
- numEntries = struct .unpack ('<Q' , FID .read (8 ))[0 ]
790
+ numKeys = struct .unpack ('<Q' , FID .read (8 ))[0 ]
791
+ numEntries = struct .unpack ('<Q' , FID .read (8 ))[0 ]
792
792
data [channel ]["linkListData" ] = {}
793
793
data [channel ]["linkListData" ]["numLLEntries" ] = numEntries
794
794
for i in range (numKeys ): #key, dataVec in LLDataVecs.items():
0 commit comments