Skip to content

Commit 736dd45

Browse files
committed
updated
1 parent 889dba9 commit 736dd45

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

python_hackrf/pyhackrf_tools/pyhackrf_sweep.pyx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,23 +198,21 @@ cpdef int sweep_callback(c_pyhackrf.PyHackrfDevice device, cnp.ndarray[cnp.int8_
198198
'timestamp': time_str,
199199
'start_frequency': frequency,
200200
'stop_frequency': frequency + sample_rate // 4,
201-
'array': pwr[fft_1_start:fft_1_stop].astype(np.float32),
202-
'raw_iq': raw_iq,
201+
'fft': pwr[fft_1_start:fft_1_stop].astype(np.float32),
203202
})
204203
device_data['queue'].put({
205204
'timestamp': time_str,
206205
'start_frequency': frequency + sample_rate // 2,
207206
'stop_frequency': frequency + (sample_rate * 3) // 4,
208-
'array': pwr[fft_2_start:fft_2_stop].astype(np.float32),
209-
'raw_iq': raw_iq,
207+
'fft': pwr[fft_2_start:fft_2_stop].astype(np.float32),
210208
})
211209

212210
else:
213211
device_data['queue'].put({
214212
'timestamp': time_str,
215213
'start_frequency': frequency,
216214
'stop_frequency': frequency + sample_rate,
217-
'array': pwr.astype(np.float32),
215+
'fft': pwr.astype(np.float32),
218216
'raw_iq': raw_iq,
219217
})
220218

0 commit comments

Comments
 (0)