diff options
author | Andrej Rode <mail@andrejro.de> | 2018-06-23 19:01:34 +0200 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2018-06-23 21:26:32 +0200 |
commit | c40c0f3243711bbf25afdd0147d45f2e96b91c06 (patch) | |
tree | 7e739772ddc68f54d318a0fa2d1afde4afcdd429 /gr-utils/python | |
parent | 5e07e65fe9350a51cd45f8f21cfa6bf144e42e1c (diff) |
python: Py3k compat
Diffstat (limited to 'gr-utils/python')
-rwxr-xr-x | gr-utils/python/utils/gr_plot_qt | 2 | ||||
-rw-r--r-- | gr-utils/python/utils/plot_fft_base.py | 2 | ||||
-rw-r--r-- | gr-utils/python/utils/plot_psd_base.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gr-utils/python/utils/gr_plot_qt b/gr-utils/python/utils/gr_plot_qt index cd2db87fd9..854ecc53b8 100755 --- a/gr-utils/python/utils/gr_plot_qt +++ b/gr-utils/python/utils/gr_plot_qt @@ -338,7 +338,7 @@ class gr_plot_qt(QtGui.QMainWindow): tstep = 1.0 / self.sample_rate self.iq = iq - self.time = [tstep*(self.position + i) for i in xrange(len(self.iq))] + self.time = [tstep*(self.position + i) for i in range(len(self.iq))] self.set_file_pos_box(start, end) except MemoryError: diff --git a/gr-utils/python/utils/plot_fft_base.py b/gr-utils/python/utils/plot_fft_base.py index c0651529ea..5040aefa87 100644 --- a/gr-utils/python/utils/plot_fft_base.py +++ b/gr-utils/python/utils/plot_fft_base.py @@ -93,7 +93,7 @@ class plot_fft_base(object): self.iq_fft = self.dofft(self.iq) tstep = 1.0 / self.sample_rate - #self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))]) + #self.time = scipy.array([tstep*(self.position + i) for i in range(len(self.iq))]) self.time = scipy.array([tstep*(i) for i in range(len(self.iq))]) self.freq = self.calc_freq(self.time, self.sample_rate) diff --git a/gr-utils/python/utils/plot_psd_base.py b/gr-utils/python/utils/plot_psd_base.py index 7c5138be4d..0a0f3cab34 100644 --- a/gr-utils/python/utils/plot_psd_base.py +++ b/gr-utils/python/utils/plot_psd_base.py @@ -103,7 +103,7 @@ class plot_psd_base(object): # returns a zero-length array if(len(self.iq) > 0): tstep = 1.0 / self.sample_rate - #self.time = scipy.array([tstep*(self.position + i) for i in xrange(len(self.iq))]) + #self.time = scipy.array([tstep*(self.position + i) for i in range(len(self.iq))]) self.time = scipy.array([tstep*(i) for i in range(len(self.iq))]) self.iq_psd, self.freq = self.dopsd(self.iq) |