Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b
Parent Directory
(gnuradio/gnuradio-core/src/python/gnuradio)
Kludge Summary of gnuradio/gnuradio-core/src/python/gnuradio/gr
| Total Kludges |
13 |
| Total Subdirs |
0 |
All Directories within gnuradio/gnuradio-core/src/python/gnuradio/gr
All Files within gnuradio/gnuradio-core/src/python/gnuradio/gr
Kludge Snippets in gnuradio/gnuradio-core/src/python/gnuradio/gr
gnuradio/gnuradio-core/src/python/gnuradio/gr/__init__.py
| PyFlakes |
redefinition of unused '_RTLD_GLOBAL' from line 32 |
| Committer |
jcorgan |
| Commit ID |
64069fba5439f51aa3bd22ddc2756c3781784531 |
31 try:
32 from dl import RTLD_GLOBAL as _RTLD_GLOBAL
33 except ImportError:
34 try:
35 from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
36 except ImportError:
37 pass
38
39 if _RTLD_GLOBAL != 0:
gnuradio/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py
| PyFlakes |
undefined name 'sys' |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
58 parser.add_option("-d", "--decimation", type="int", default=1)
59 (options, args) = parser.parse_args()
60 if len(args) != 0:
61 parser.print_help()
62 sys.exit(1)
63
64 ntaps = options.ntaps
65 total_input_size = options.total_input_size
66 block_size = options.block_size
gnuradio/gnuradio-core/src/python/gnuradio/gr/gr_threading_24.py
| PyFlakes |
redefinition of unused 'local' from line 703 |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
701
702 try:
703 from thread import _local as local
704 except ImportError:
705 from _threading_local import local
706
707
708 # Self-test code
709
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_agc.py
| Category |
FIXME |
| Committer |
eb |
| Commit ID |
f1c41f807cb29472d0924149e39d6ec8ad90e6a2 |
410 dst_data = dst1.data ()
411 self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 4)
412
413
414 def test_100(self): # FIXME needs work
415 ''' Test complex feedforward agc with constant input '''
416 input_data = 16*(0.0,) + 64*(1.0,) + 64*(0.0,)
417 expected_result = ()
418
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 1
| Category |
Magic |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
30 def tearDown(self):
31 pass
32
33 def test_blks_import(self):
34 # make sure that this somewhat magic import works
35 from gnuradio import blks2
36
37 def test_gru_import(self):
38 # make sure that this somewhat magic import works
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 2
| Category |
Magic |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
34 # make sure that this somewhat magic import works
35 from gnuradio import blks2
36
37 def test_gru_import(self):
38 # make sure that this somewhat magic import works
39 from gnuradio import gru
40
41
42 if __name__ == '__main__':
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_mute.py
| PyFlakes |
redefinition of function 'test_unmute_cc' from line 75 |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
77 expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
78 op = gr.mute_cc (False)
79 self.help_cc ((src_data,), expected_result, op)
80
81 def test_unmute_cc (self):
82 src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
83 expected_result = (0+0j, 0+0j, 0+0j, 0+0j, 0+0j)
84 op = gr.mute_cc (True)
85 self.help_cc ((src_data,), expected_result, op)
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 1
| Category |
FIXME |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
119 self.assertEqual(expected_result, result_data)
120
121 def test_002_interp(self):
122 taps = random_floats(31)
123 #src_data = random_floats(10000) # FIXME the 10k case fails!
124 src_data = random_floats(1000)
125 interpolation = 3
126
127 expected_result = reference_interp_filter(src_data, interpolation, taps)
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 2
| Category |
FIXME |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
143 (L2 - L1, len(taps), interpolation, len(src_data)))
144 sys.stderr.write(' len(result_data) = %d len(expected_result) = %d\n' %
145 (len(result_data), len(expected_result)))
146 #self.assertEqual(expected_result[0:L], result_data[0:L])
147 # FIXME check first 3 answers
148 self.assertEqual(expected_result[3:L], result_data[3:L])
149
150 def test_003_interp(self):
151 taps = random_floats(31)
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 3
| Category |
FIXME |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
172 sys.stderr.write(' len(result_data) = %d len(expected_result) = %d\n' %
173 (len(result_data), len(expected_result)))
174 self.assertEqual(expected_result[0:L], result_data[0:L])
175
176 # FIXME disabled. Triggers hang on SuSE 10.0
177 def xtest_004_decim_random_vals(self):
178 MAX_TAPS = 9
179 MAX_DECIM = 7
180 OUTPUT_LEN = 9
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 4
| Category |
FIXME |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
205 (len(result_data), len(expected_result)))
206 self.assertEqual(expected_result[0:L], result_data[0:L])
207
208
209 # FIXME disabled. Triggers hang on SuSE 10.0
210 def xtest_005_interp_random_vals(self):
211 MAX_TAPS = 9
212 MAX_INTERP = 7
213 INPUT_LEN = 9
gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 5
| Category |
FIXME |
| Committer |
jcorgan |
| Commit ID |
5d69a524f81f234b3fbc41d49ba18d6f6886baba |
237 sys.stderr.write('delta = %2d: ntaps = %d interp = %d ilen = %d\n' % (L2 - L1, ntaps, interp, ilen))
238 #sys.stderr.write(' len(result_data) = %d len(expected_result) = %d\n' %
239 # (len(result_data), len(expected_result)))
240 #self.assertEqual(expected_result[0:L], result_data[0:L])
241 # FIXME check first ntaps+1 answers
242 self.assertEqual(expected_result[ntaps+1:L], result_data[ntaps+1:L])
243
244
245 def test_006_interp_decim(self):
gnuradio/gnuradio-core/src/python/gnuradio/gr/top_block.py
| Category |
Kludge |
| Committer |
eb |
| Commit ID |
2c8ea58e4d76f54c98d71d3fcc64bc29da490908 |
29 #
30 # There is no problem that can't be solved with an additional
31 # level of indirection...
32 #
33 # This kludge allows ^C to interrupt top_block.run and top_block.wait
34 #
35 # The problem that we are working around is that Python only services
36 # signals (e.g., KeyboardInterrupt) in its main thread. If the main
37 # thread is blocked in our C++ version of wait, even though Python's