Skip to content

Commit bafe396

Browse files
committed
single type
1 parent 80864fa commit bafe396

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python_bladerf/pybladerf_tools/pybladerf_sweep.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,21 @@ cdef void process_data(object device):
145145
'timestamp': time_str,
146146
'start_frequency': frequency,
147147
'stop_frequency': frequency + sample_rate // 4,
148-
'array': pwr[fft_1_start:fft_1_stop]
148+
'array': pwr[fft_1_start:fft_1_stop].astype(np.float32)
149149
})
150150
current_device_data['queue'].put({
151151
'timestamp': time_str,
152152
'start_frequency': frequency + sample_rate // 2,
153153
'stop_frequency': frequency + (sample_rate * 3) // 4,
154-
'array': pwr[fft_2_start:fft_2_stop]
154+
'array': pwr[fft_2_start:fft_2_stop].astype(np.float32)
155155
})
156156

157157
else:
158158
current_device_data['queue'].put({
159159
'timestamp': time_str,
160160
'start_frequency': frequency,
161161
'stop_frequency': frequency + sample_rate,
162-
'array': pwr
162+
'array': pwr.astype(np.float32)
163163
})
164164

165165
else:

0 commit comments

Comments
 (0)