Skip to content

Commit

Permalink
Save hdf5 data as np.complex.
Browse files Browse the repository at this point in the history
  • Loading branch information
gribeill committed Feb 21, 2018
1 parent 3de6274 commit b56db34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QGL/drivers/APS3Pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ def write_sequence_file(awgData, fileName, miniLLRepeat=1):
FID.create_dataset('seq_lens', shape=seq_lens.shape, data = seq_lens)

for ct in range(len(seq_data)):
FID.create_dataset('seq_data_{:d}'.format(ct), shape=seq_data[ct].shape, data=seq_data[ct])
FID.create_dataset('seq_data_{:d}'.format(ct), shape=seq_data[ct].shape,
data=seq_data[ct], dtype=np.complex)

def read_sequence_file(fileName):
AWGData = {'ch1I': [], 'ch1Q': [], 'ch1m1': []}
Expand Down

0 comments on commit b56db34

Please sign in to comment.