Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Parent Directory (gnuradio)

Kludge Summary of gnuradio/gr-wxgui

Total Kludges 24
Total Subdirs 3

All Directories within gnuradio/gr-wxgui

All Files within gnuradio/gr-wxgui

Kludge Snippets in gnuradio/gr-wxgui

gnuradio/gr-wxgui/src/python/fftsink2.py — 1

PyFlakes redefinition of unused 'fft_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 2

PyFlakes redefinition of unused 'fft_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 3

PyFlakes redefinition of unused 'fft_sink_f' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 4

PyFlakes redefinition of unused 'fft_sink_c' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink_nongl.py — 1

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
129                    
130                self.c2mag = gr.complex_to_mag(self.fft_size)
131                self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
132        
133                # FIXME  We need to add 3dB to all bins but the DC bin
134                self.log = gr.nlog10_ff(20, self.fft_size,
135                                       -10*math.log10(self.fft_size)                # Adjust for number of bins
136                                       -10*math.log10(power/self.fft_size)        # Adjust for windowing loss
137                                       -20*math.log10(ref_scale/2))                # Adjust for reference scale
				

gnuradio/gr-wxgui/src/python/fftsink_nongl.py — 2

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
174                    
175                self.c2mag = gr.complex_to_mag(self.fft_size)
176                self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
177        
178                # FIXME  We need to add 3dB to all bins but the DC bin
179                self.log = gr.nlog10_ff(20, self.fft_size,
180                                        -10*math.log10(self.fft_size)                # Adjust for number of bins
181                                        -10*math.log10(power/self.fft_size)        # Adjust for windowing loss
182                                        -20*math.log10(ref_scale/2))                # Adjust for reference scale
				

gnuradio/gr-wxgui/src/python/gui.py — 1

Category FIXME
Committer jcorgan
Commit ID f92986d6ff10330ee4608510f7baaa895e6772e0
73                self.SetMenuBar(mainmenu)
74        
75                menu = wx.Menu()
76        
77                item = menu.Append(200, 'E&xit', 'Exit Application') # FIXME magic ID
78                self.Bind(wx.EVT_MENU, self.OnCloseWindow, item)
79                mainmenu.Append(menu, "&File")
80                self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
81        
				

gnuradio/gr-wxgui/src/python/gui.py — 2

Category Magic
Committer jcorgan
Commit ID f92986d6ff10330ee4608510f7baaa895e6772e0
73                self.SetMenuBar(mainmenu)
74        
75                menu = wx.Menu()
76        
77                item = menu.Append(200, 'E&xit', 'Exit Application') # FIXME magic ID
78                self.Bind(wx.EVT_MENU, self.OnCloseWindow, item)
79                mainmenu.Append(menu, "&File")
80                self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
81        
				

gnuradio/gr-wxgui/src/python/plot.py

PyFlakes redefinition of unused '_numpy' from line 101
Committer jcorgan
Commit ID 9880e7bb383054aa43681b52ebd33c8fd4cb8fcb
100        try:
101            import numpy as _numpy
102        except:
103            try:
104                import numarray as _numpy  #if numarray is used it is renamed numpy
105            except:
106                msg= """
107                This module requires the numpy or numarray module,
108                which could not be imported.  It probably is not installed
				

gnuradio/gr-wxgui/src/python/plotter/gltext.py

PyFlakes redefinition of unused 'psyco' from line 32
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
31        try:
32            import psyco
33            psyco_optimized = False
34        except ImportError:
35            psyco = None

36            
37        #Disable psyco
38        #psyco = None
39                  
				

gnuradio/gr-wxgui/src/python/powermate.py — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
83        #   shuttle position (absolute_position)  # -7,-6,...,0,...,6,7
84        
85        # ----------------------------------------------------------------
86        # Our ID's for the devices:
87        # Not to be confused with anything related to magic hardware numbers.
88        
89        ID_POWERMATE         = 'powermate'
90        ID_SHUTTLE_XPRESS    = 'shuttle xpress'
91        ID_SHUTTLE_PRO       = 'shuttle pro'
				

gnuradio/gr-wxgui/src/python/powermate.py — 2

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
234        
235            def set_led_state(self, static_brightness, pulse_speed=0,
236                              pulse_table=0, pulse_on_sleep=0, pulse_on_wake=0):
237                """
238                What do these magic values mean...
239                """
240                if self.id != ID_POWERMATE:
241                    return False
242                
				

gnuradio/gr-wxgui/src/python/powermate.py — 3

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
250                if pulse_table > 2:
251                    pulse_table = 2
252                pulse_on_sleep = not not pulse_on_sleep # not not = convert to 0/1
253                pulse_on_wake  = not not pulse_on_wake
254                magic = (static_brightness
255                         | (pulse_speed << 8)
256                         | (pulse_table << 17)
257                         | (pulse_on_sleep << 19)
258                         | (pulse_on_wake << 20))
				

gnuradio/gr-wxgui/src/python/powermate.py — 4

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
312                    # === Shuttle ring ===
313                    # First off, this really ought to be IET_ABS, not IET_REL!
314                    # They never generate a zero value so you can't
315                    # tell when the shuttle ring is back in the center.
316                    # We kludge around this by calling both -1 and 1 zero.
317                    if val == -1 or val == 1:
318                        return (sec, usec, type, code, 0)
319                    return event
320        
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 1

PyFlakes redefinition of unused 'scope_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 2

PyFlakes redefinition of unused 'scope_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 3

PyFlakes redefinition of unused 'scope_sink_f' from line 37
Committer jcorgan
Commit ID d9744799b7df6c09180778540bf55eb9dc84281b
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 4

PyFlakes redefinition of unused 'scope_sink_c' from line 37
Committer jcorgan
Commit ID d9744799b7df6c09180778540bf55eb9dc84281b
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 1

PyFlakes redefinition of unused 'waterfall_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 2

PyFlakes redefinition of unused 'waterfall_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 3

PyFlakes redefinition of unused 'waterfall_sink_f' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 4

PyFlakes redefinition of unused 'waterfall_sink_c' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink_nongl.py — 1

PyFlakes redefinition of function 'const_list' from line 207
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
244                    dc = wx.ClientDC(self)
245                dc.DrawBitmap(self.bm, 0, 0, False )
246            
247        
248            def const_list(self,const,len):
249                a = [const]
250                for i in range(1,len):
251                    a.append(const)
252                return a
				

gnuradio/gr-wxgui/src/python/waterfallsink_nongl.py — 2

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
179                self.set_baseband_freq = fftsink.set_baseband_freq
180                self.fftsink = fftsink
181                self.bm = wx.EmptyBitmap(self.fftsink.fft_size, 300, -1)
182        
183                self.scale_factor = 5.0           # FIXME should autoscale, or set this
184                
185                dc1 = wx.MemoryDC()
186                dc1.SelectObject(self.bm)
187                dc1.Clear()