Skip to content

Commit 40c0def

Browse files
committed
Python3_PhaseMatrixQuickSyn: Python3 compatibility changes
1 parent c8f66c4 commit 40c0def

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PhaseMatrixQuickSyn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def generate_code(self, hdf5_file):
9494
dds.gate.expand_timeseries()
9595

9696
dds.frequency.raw_output, dds.frequency.scale_factor = self.quantise_freq(dds.frequency.raw_output, dds)
97-
static_dtypes = [('freq0', np.uint64)] + \
98-
[('gate0', np.uint16)]
97+
static_dtypes = {'names': ['freq0', 'gate0'], 'formats': [np.uint64, np.uint16, ]}
9998
static_table = np.zeros(1, dtype=static_dtypes)
10099
static_table['freq0'].fill(1)
101100
static_table['freq0'] = dds.frequency.raw_output[0]

0 commit comments

Comments
 (0)