|
13 | 13 |
|
14 | 14 | from __future__ import division, unicode_literals, print_function, absolute_import |
15 | 15 | from labscript_utils import PY2 |
16 | | -from labscript_utils.numpy_dtype_workaround import dtype_workaround |
17 | 16 | if PY2: |
18 | 17 | str = unicode |
19 | 18 | import __builtin__ as builtins |
@@ -1787,7 +1786,7 @@ def close(self, t): |
1787 | 1786 |
|
1788 | 1787 | def generate_code(self, hdf5_file): |
1789 | 1788 | classname = self.__class__.__name__ |
1790 | | - calibration_table_dtypes = dtype_workaround([('name','a256'), ('open_delay',float), ('close_delay',float)]) |
| 1789 | + calibration_table_dtypes = [('name','a256'), ('open_delay',float), ('close_delay',float)] |
1791 | 1790 | if classname not in hdf5_file['calibrations']: |
1792 | 1791 | hdf5_file['calibrations'].create_dataset(classname, (0,), dtype=calibration_table_dtypes, maxshape=(None,)) |
1793 | 1792 | metadata = (self.name,self.open_delay,self.close_delay) |
@@ -2124,7 +2123,7 @@ class LabscriptError(Exception): |
2124 | 2123 |
|
2125 | 2124 | def save_time_markers(hdf5_file): |
2126 | 2125 | time_markers = compiler.time_markers |
2127 | | - dtypes = dtype_workaround([('label','a256'), ('time', float), ('color', '(1,3)int')]) |
| 2126 | + dtypes = [('label','a256'), ('time', float), ('color', '(1,3)int')] |
2128 | 2127 | data_array = zeros(len(time_markers), dtype=dtypes) |
2129 | 2128 | for i, t in enumerate(time_markers): |
2130 | 2129 | data_array[i] = time_markers[t]["label"], t, time_markers[t]["color"] |
@@ -2170,10 +2169,10 @@ def generate_connection_table(hdf5_file): |
2170 | 2169 |
|
2171 | 2170 | connection_table.sort() |
2172 | 2171 | vlenstring = h5py.special_dtype(vlen=str) |
2173 | | - connection_table_dtypes = dtype_workaround([('name','a256'), ('class','a256'), ('parent','a256'), ('parent port','a256'), |
| 2172 | + connection_table_dtypes = [('name','a256'), ('class','a256'), ('parent','a256'), ('parent port','a256'), |
2174 | 2173 | ('unit conversion class','a256'), ('unit conversion params', vlenstring), |
2175 | 2174 | ('BLACS_connection','a'+str(max_BLACS_conn_length)), |
2176 | | - ('properties', vlenstring)]) |
| 2175 | + ('properties', vlenstring)] |
2177 | 2176 | connection_table_array = empty(len(connection_table),dtype=connection_table_dtypes) |
2178 | 2177 | for i, row in enumerate(connection_table): |
2179 | 2178 | connection_table_array[i] = row |
@@ -2257,7 +2256,7 @@ def write_device_properties(hdf5_file): |
2257 | 2256 |
|
2258 | 2257 |
|
2259 | 2258 | def generate_wait_table(hdf5_file): |
2260 | | - dtypes = dtype_workaround([('label','a256'), ('time', float), ('timeout', float)]) |
| 2259 | + dtypes = [('label','a256'), ('time', float), ('timeout', float)] |
2261 | 2260 | data_array = zeros(len(compiler.wait_table), dtype=dtypes) |
2262 | 2261 | for i, t in enumerate(sorted(compiler.wait_table)): |
2263 | 2262 | label, timeout = compiler.wait_table[t] |
|
0 commit comments