File tree Expand file tree Collapse file tree
python_bladerf/pybladerf_tools Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments