From e0f7202ff9e891de822badec19eac5edf13f0117 Mon Sep 17 00:00:00 2001 From: "Michal Krenek (Mikos)" Date: Thu, 16 Mar 2017 16:43:12 +0100 Subject: [PATCH] Update soapy_power_bin format to include both acquisition start time and stop time --- qspectrumanalyzer/backends/soapy_power.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qspectrumanalyzer/backends/soapy_power.py b/qspectrumanalyzer/backends/soapy_power.py index ecbcc9d..402e322 100644 --- a/qspectrumanalyzer/backends/soapy_power.py +++ b/qspectrumanalyzer/backends/soapy_power.py @@ -132,7 +132,8 @@ class PowerThread(BasePowerThread): """Parse data from soapy_power""" header, y_axis = data - timestamp = header.timestamp + time_start = header.time_start + time_stop = header.time_stop start_freq = header.start stop_freq = header.stop step = header.step @@ -146,7 +147,7 @@ class PowerThread(BasePowerThread): self.min_freq = start_freq if start_freq == self.min_freq: - self.databuffer = {"timestamp": timestamp, + self.databuffer = {"timestamp": time_stop, "x": list(x_axis), "y": list(y_axis)} else: