1919from labscript import PseudoclockDevice , Pseudoclock , ClockLine , IntermediateDevice , DDS , config , startupinfo , LabscriptError , set_passed_properties
2020import numpy as np
2121
22- from labscript_utils .numpy_dtype_workaround import dtype_workaround
2322from labscript_devices import BLACS_tab , runviewer_parser
2423
2524# Define a RFBlasterPseudoclock that only accepts one child clockline
@@ -93,7 +92,7 @@ def generate_code(self, hdf5_file):
9392
9493 # Generate clock and save raw instructions to the h5 file:
9594 PseudoclockDevice .generate_code (self , hdf5_file )
96- dtypes = dtype_workaround ( [('time' ,float ),('amp0' ,float ),('freq0' ,float ),('phase0' ,float ),('amp1' ,float ),('freq1' ,float ),('phase1' ,float )])
95+ dtypes = [('time' ,float ),('amp0' ,float ),('freq0' ,float ),('phase0' ,float ),('amp1' ,float ),('freq1' ,float ),('phase1' ,float )]
9796
9897 times = self .pseudoclock .times [self ._clock_line ]
9998
@@ -108,9 +107,9 @@ def generate_code(self, hdf5_file):
108107 group .create_dataset ('TABLE_DATA' ,compression = config .compression , data = data )
109108
110109 # Quantise the data and save it to the h5 file:
111- quantised_dtypes = dtype_workaround ( [('time' ,np .int64 ),
110+ quantised_dtypes = [('time' ,np .int64 ),
112111 ('amp0' ,np .int32 ), ('freq0' ,np .int32 ), ('phase0' ,np .int32 ),
113- ('amp1' ,np .int32 ), ('freq1' ,np .int32 ), ('phase1' ,np .int32 )])
112+ ('amp1' ,np .int32 ), ('freq1' ,np .int32 ), ('phase1' ,np .int32 )]
114113
115114 quantised_data = np .zeros (len (times ),dtype = quantised_dtypes )
116115 quantised_data ['time' ] = np .array (c .tT * 1e6 * data ['time' ]+ 0.5 )
0 commit comments