diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-07-07 12:18:00 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-07-07 12:18:00 -0400 |
commit | 597b93798a804cde1783d6d2ab53b348d57c44cd (patch) | |
tree | b65e73bb0de634ff5d209b15971ebdabf369a45c /gr-wxgui/python | |
parent | 1151e5502ccd440ebd89599cf7e4be4fb5ed8334 (diff) |
Removing trailing/extra whitespaces before release.
We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
Diffstat (limited to 'gr-wxgui/python')
-rw-r--r-- | gr-wxgui/python/wxgui/common.py | 32 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/fft_window.py | 4 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/fftsink_gl.py | 2 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/fftsink_nongl.py | 2 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/forms/__init__.py | 2 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/forms/forms.py | 2 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/histo_window.py | 4 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/number_window.py | 6 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/plotter/common.py | 6 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/plotter/grid_plotter_base.py | 8 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/plotter/waterfall_plotter.py | 4 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/scope_window.py | 2 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/waterfall_window.py | 6 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/waterfallsink_gl.py | 2 |
14 files changed, 41 insertions, 41 deletions
diff --git a/gr-wxgui/python/wxgui/common.py b/gr-wxgui/python/wxgui/common.py index 48a62a28ab..d466bdd9d5 100644 --- a/gr-wxgui/python/wxgui/common.py +++ b/gr-wxgui/python/wxgui/common.py @@ -65,10 +65,10 @@ class wxgui_hb(object): """ Create a function that will cache the visibility flag, and only call the handler when that flag changes. - + Args: handler: the function to call on a change - + Returns: a function of 1 argument """ @@ -89,7 +89,7 @@ class wxgui_hb(object): Bind a handler to a window when its visibility changes. Specifically, call the handler when the window visibility changes. This condition is checked on every update ui event. - + Args: win: the wx window handler: a function of 1 param @@ -133,7 +133,7 @@ def _register_access_method(destination, controller, key): def register_access_methods(destination, controller): """ Register setter and getter functions in the destination object for all keys in the controller. - + Args: destination: the object to get new setter and getter methods controller: the pubsub controller @@ -173,10 +173,10 @@ import math def get_exp(num): """ Get the exponent of the number in base 10. - + Args: num: the floating point number - + Returns: the exponent as an integer """ @@ -186,10 +186,10 @@ def get_exp(num): def get_clean_num(num): """ Get the closest clean number match to num with bases 1, 2, 5. - + Args: num: the number - + Returns: the closest number """ @@ -202,10 +202,10 @@ def get_clean_num(num): def get_clean_incr(num): """ Get the next higher clean number with bases 1, 2, 5. - + Args: num: the number - + Returns: the next higher number """ @@ -224,10 +224,10 @@ def get_clean_incr(num): def get_clean_decr(num): """ Get the next lower clean number with bases 1, 2, 5. - + Args: num: the number - + Returns: the next lower number """ @@ -246,10 +246,10 @@ def get_clean_decr(num): def get_min_max(samples): """ Get the minimum and maximum bounds for an array of samples. - + Args: samples: the array of real values - + Returns: a tuple of min, max """ @@ -264,10 +264,10 @@ def get_min_max(samples): def get_min_max_fft(fft_samps): """ Get the minimum and maximum bounds for an array of fft samples. - + Args: samples: the array of real values - + Returns: a tuple of min, max """ diff --git a/gr-wxgui/python/wxgui/fft_window.py b/gr-wxgui/python/wxgui/fft_window.py index 80ecf526b2..86023e3f88 100644 --- a/gr-wxgui/python/wxgui/fft_window.py +++ b/gr-wxgui/python/wxgui/fft_window.py @@ -61,7 +61,7 @@ class control_panel(wx.Panel): def __init__(self, parent): """ Create a new control panel. - + Args: parent: the wx parent window """ @@ -327,7 +327,7 @@ class fft_window(wx.Panel, pubsub.pubsub): If real, keep take only the positive bins. Plot the samples onto the grid as channel 1. If peak hold is enabled, plot peak vals as channel 2. - + Args: msg: the fft array as a character array """ diff --git a/gr-wxgui/python/wxgui/fftsink_gl.py b/gr-wxgui/python/wxgui/fftsink_gl.py index 272a2456ce..a0b245c98a 100644 --- a/gr-wxgui/python/wxgui/fftsink_gl.py +++ b/gr-wxgui/python/wxgui/fftsink_gl.py @@ -130,7 +130,7 @@ class _fft_sink_base(gr.hier_block2, common.wxgui_hb): setattr(self.win, 'set_peak_hold', getattr(self, 'set_peak_hold')) #BACKWARDS #connect self.wxgui_connect(self, fft, sink) - + def set_callback(self,callb): self.win.set_callback(callb) diff --git a/gr-wxgui/python/wxgui/fftsink_nongl.py b/gr-wxgui/python/wxgui/fftsink_nongl.py index f567a22256..be69e41578 100644 --- a/gr-wxgui/python/wxgui/fftsink_nongl.py +++ b/gr-wxgui/python/wxgui/fftsink_nongl.py @@ -170,7 +170,7 @@ class fft_sink_c(gr.hier_block2, fft_sink_base): sample_rate=sample_rate, fft_size=fft_size, fft_rate=fft_rate, average=average, avg_alpha=avg_alpha, title=title, - peak_hold=peak_hold, use_persistence=use_persistence, + peak_hold=peak_hold, use_persistence=use_persistence, persist_alpha=persist_alpha) self.s2p = blocks.stream_to_vector(gr.sizeof_gr_complex, self.fft_size) diff --git a/gr-wxgui/python/wxgui/forms/__init__.py b/gr-wxgui/python/wxgui/forms/__init__.py index 67d3b4a88a..058fa2ec28 100644 --- a/gr-wxgui/python/wxgui/forms/__init__.py +++ b/gr-wxgui/python/wxgui/forms/__init__.py @@ -48,7 +48,7 @@ import wx class static_box_sizer(wx.StaticBoxSizer): """ A box sizer with label and border. - + Args: parent: the parent widget sizer: add this widget to sizer if provided (optional) diff --git a/gr-wxgui/python/wxgui/forms/forms.py b/gr-wxgui/python/wxgui/forms/forms.py index 80822ae174..db55472210 100644 --- a/gr-wxgui/python/wxgui/forms/forms.py +++ b/gr-wxgui/python/wxgui/forms/forms.py @@ -436,7 +436,7 @@ class toggle_button(button): """ Create a dual-state button. This button will alternate between True and False when clicked. - + Args: parent: the parent widget sizer: add this widget to sizer if provided (optional) diff --git a/gr-wxgui/python/wxgui/histo_window.py b/gr-wxgui/python/wxgui/histo_window.py index f830dc83bd..424ee7bbdb 100644 --- a/gr-wxgui/python/wxgui/histo_window.py +++ b/gr-wxgui/python/wxgui/histo_window.py @@ -48,7 +48,7 @@ class control_panel(wx.Panel): def __init__(self, parent): """ Create a new control panel. - + Args: parent: the wx parent window """ @@ -137,7 +137,7 @@ class histo_window(wx.Panel, pubsub.pubsub): def handle_msg(self, msg): """ Handle the message from the fft sink message queue. - + Args: msg: the frame as a character array """ diff --git a/gr-wxgui/python/wxgui/number_window.py b/gr-wxgui/python/wxgui/number_window.py index 751047db94..2e54f8460f 100644 --- a/gr-wxgui/python/wxgui/number_window.py +++ b/gr-wxgui/python/wxgui/number_window.py @@ -54,7 +54,7 @@ class control_panel(wx.Panel): def __init__(self, parent): """ Create a new control panel. - + Args: parent: the wx parent window """ @@ -178,7 +178,7 @@ class number_window(wx.Panel, pubsub.pubsub): """ Show or hide the gauges. If this is real, never show the imaginary gauge. - + Args: show_gauge: true to show """ @@ -191,7 +191,7 @@ class number_window(wx.Panel, pubsub.pubsub): Convert the string based message into a float or complex. If more than one number was read, only take the last number. Perform peak hold operations, set the gauges and display. - + Args: event: event.data is the number sample as a character array """ diff --git a/gr-wxgui/python/wxgui/plotter/common.py b/gr-wxgui/python/wxgui/plotter/common.py index 9af636245d..c296b1fa79 100644 --- a/gr-wxgui/python/wxgui/plotter/common.py +++ b/gr-wxgui/python/wxgui/plotter/common.py @@ -73,7 +73,7 @@ def get_si_components(num): def sci_format(num): """ Format a floating point number into scientific notation. - + Args: num: the number to format @@ -87,11 +87,11 @@ def sci_format(num): def eng_format(num, units=''): """ Format a floating point number into engineering notation. - + Args: num: the number to format units: the units to append - + Returns: a label string """ diff --git a/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py b/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py index e1ac311deb..bc48ad72f5 100644 --- a/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py +++ b/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py @@ -78,7 +78,7 @@ class grid_plotter_base(plotter_base): def set_point_label_coordinate(self, coor): """ Set the point label coordinate. - + Args: coor: the coordinate x, y tuple or None """ @@ -87,7 +87,7 @@ class grid_plotter_base(plotter_base): self._point_label_cache.changed(True) self.update() self.unlock() - + def call_freq_callback(self, coor): try: x, y = self._point_label_coordinate @@ -102,7 +102,7 @@ class grid_plotter_base(plotter_base): x_val = x_win_scalar*(self.x_max-self.x_min) + self.x_min y_val = y_win_scalar*(self.y_max-self.y_min) + self.y_min self._call_callback(x_val, y_val) - + def enable_grid_aspect_ratio(self, enable=None): """ Enable/disable the grid aspect ratio. @@ -371,7 +371,7 @@ class grid_plotter_base(plotter_base): def enable_grid_lines(self, enable=None): """ Enable/disable the grid lines. - + Args: enable: true to enable diff --git a/gr-wxgui/python/wxgui/plotter/waterfall_plotter.py b/gr-wxgui/python/wxgui/plotter/waterfall_plotter.py index 02ec67ee4c..a5601e25bc 100644 --- a/gr-wxgui/python/wxgui/plotter/waterfall_plotter.py +++ b/gr-wxgui/python/wxgui/plotter/waterfall_plotter.py @@ -184,10 +184,10 @@ class waterfall_plotter(grid_plotter_base): def _call_callback(self, x_val, y_val): if self.callback != None: self.callback(x_val,y_val) - + def set_callback(self,callback): self.callback = callback - + def _draw_legend(self): """ Draw the color scale legend. diff --git a/gr-wxgui/python/wxgui/scope_window.py b/gr-wxgui/python/wxgui/scope_window.py index 5d367d9c45..71e2b8e285 100644 --- a/gr-wxgui/python/wxgui/scope_window.py +++ b/gr-wxgui/python/wxgui/scope_window.py @@ -85,7 +85,7 @@ class control_panel(wx.Panel): def __init__(self, parent): """ Create a new control panel. - + Args: parent: the wx parent window """ diff --git a/gr-wxgui/python/wxgui/waterfall_window.py b/gr-wxgui/python/wxgui/waterfall_window.py index 9f91d17eb4..272af10ffc 100644 --- a/gr-wxgui/python/wxgui/waterfall_window.py +++ b/gr-wxgui/python/wxgui/waterfall_window.py @@ -61,7 +61,7 @@ class control_panel(wx.Panel): def __init__(self, parent): """ Create a new control panel. - + Args: parent: the wx parent window """ @@ -243,7 +243,7 @@ class waterfall_window(wx.Panel, pubsub.pubsub): def set_callback(self,callb): self.plotter.set_callback(callb) - + def autoscale(self, *args): """ Autoscale the waterfall plot to the last frame. @@ -262,7 +262,7 @@ class waterfall_window(wx.Panel, pubsub.pubsub): If complex, reorder the fft samples so the negative bins come first. If real, keep take only the positive bins. Send the data to the plotter. - + Args: msg: the fft array as a character array """ diff --git a/gr-wxgui/python/wxgui/waterfallsink_gl.py b/gr-wxgui/python/wxgui/waterfallsink_gl.py index ead97df1e7..c763d591b2 100644 --- a/gr-wxgui/python/wxgui/waterfallsink_gl.py +++ b/gr-wxgui/python/wxgui/waterfallsink_gl.py @@ -118,7 +118,7 @@ class _waterfall_sink_base(gr.hier_block2, common.wxgui_hb): def set_callback(self,callb): self.win.set_callback(callb) - + class waterfall_sink_f(_waterfall_sink_base): _fft_chain = logpwrfft.logpwrfft_f _item_size = gr.sizeof_float |