Skip to content

Commit fec153a

Browse files
committed
Change from saving magnitude to save iq samples to align with sigMF standard
1 parent a61f841 commit fec153a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spectrum/spectrum_dapp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def __init__(self, dapp_name: str = DAPP_NAME, dapp_version: str = DAPP_VERSION,
100100
hw_info=f"FFT:{self.fft_size}, PRBs:{self.num_prbs}, E-sampling:{e_sampling}",
101101
description=f"5G NR Uplink capture from SpectrumSharing dApp - RAN Function {self.RAN_FUNCTION_ID}",
102102
fft_size=self.fft_size,
103+
dtype="ci16_le",
103104
num_prbs=self.num_prbs,
104105
subcarrier_spacing_khz=self.num_subcarrier_spacing,
105106
sampling_threshold=self.sampling_threshold
@@ -379,7 +380,7 @@ def _handle_indication(self, dapp_identifier: int, data: bytes):
379380
with self._sample_idx_lock:
380381
self.sample_idx = None
381382
if self.save_iqs:
382-
self.sample_idx = self.iq_saver.save_samples(iq_comp.astype(np.complex64), timestamp=timestamp)
383+
self.sample_idx = self.iq_saver.save_samples(iq_arr, timestamp=timestamp)
383384

384385
abs_iq = np.abs(iq_comp).astype(float)
385386
dapp_logger.debug(f"After iq division self.abs_iq_av: {self.abs_iq_av.shape} abs_iq: {abs_iq.shape}")

0 commit comments

Comments
 (0)