From bc3ce11bc42c23ce654aa21fee5ddc8d9497a9eb Mon Sep 17 00:00:00 2001 From: Pavel Demin Date: Thu, 12 Oct 2017 00:31:11 +0200 Subject: [PATCH 1/2] fix xlim in vna.py --- projects/vna/client/vna.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/vna/client/vna.py b/projects/vna/client/vna.py index aaf84ac13..097450281 100644 --- a/projects/vna/client/vna.py +++ b/projects/vna/client/vna.py @@ -234,9 +234,9 @@ def move_marker(self, index, event): def release_marker(self, index, event): self.cursorPressed[index] = False - def xlim(self): - start = self.dut.freq[0] - stop = self.dut.freq[-1] + def xlim(self, freq): + start = freq[0] + stop = freq[-1] min = np.minimum(start, stop) max = np.maximum(start, stop) margin = (max - min) / 50 @@ -268,7 +268,7 @@ def plot_curves(self, freq, data1, label1, limit1, data2, label2, limit2): axes1.xaxis.grid() axes1.set_xlabel('kHz') axes1.set_ylabel(label1) - xlim = self.xlim() + xlim = self.xlim(freq) axes1.set_xlim(xlim) if limit1 is not None: axes1.set_ylim(limit1) self.curve1, = axes1.plot(freq, data1, color = 'blue', label = label1) From b8dfbde8a41bc17a2cf85295132bcce8052a1079 Mon Sep 17 00:00:00 2001 From: Pavel Demin Date: Thu, 12 Oct 2017 00:31:32 +0200 Subject: [PATCH 2/2] set jobs to 4 in decode-wspr.sh --- projects/sdr_transceiver_wspr/app/decode-wspr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/sdr_transceiver_wspr/app/decode-wspr.sh b/projects/sdr_transceiver_wspr/app/decode-wspr.sh index df4c6c45f..8973777fe 100755 --- a/projects/sdr_transceiver_wspr/app/decode-wspr.sh +++ b/projects/sdr_transceiver_wspr/app/decode-wspr.sh @@ -4,7 +4,7 @@ CALL= GRID= -JOBS=2 +JOBS=4 NICE=10 DIR=`readlink -f $0`