diff options
author | Jiří Pinkava <j-pi@seznam.cz> | 2016-06-28 13:14:38 +0200 |
---|---|---|
committer | Jiří Pinkava <j-pi@seznam.cz> | 2016-06-28 13:14:54 +0200 |
commit | 2013f22b4e2203f88f482ff545aaafee35c72494 (patch) | |
tree | 29d8dce5ca93452c17c21bacb6a939b55df3d492 /gr-digital/examples/narrowband/receive_path.py | |
parent | 3b2566122d89a1c23460f8d1f3e558b872666612 (diff) |
simplify application of staticmethod in .py
Diffstat (limited to 'gr-digital/examples/narrowband/receive_path.py')
-rw-r--r-- | gr-digital/examples/narrowband/receive_path.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gr-digital/examples/narrowband/receive_path.py b/gr-digital/examples/narrowband/receive_path.py index dc155e1d12..8bbfe92770 100644 --- a/gr-digital/examples/narrowband/receive_path.py +++ b/gr-digital/examples/narrowband/receive_path.py @@ -124,8 +124,8 @@ class receive_path(gr.hier_block2): threshold_in_db: set detection threshold (float (dB)) """ self.probe.set_threshold(threshold_in_db) - - + + @staticmethod def add_options(normal, expert): """ Adds receiver-specific options to the Options Parser @@ -141,10 +141,6 @@ class receive_path(gr.hier_block2): expert.add_option("", "--chbw-factor", type="float", default=1.0, help="Channel bandwidth = chbw_factor x signal bandwidth [defaut=%default]") - # Make a static method to call before instantiation - add_options = staticmethod(add_options) - - def _print_verbage(self): """ Prints information about the receive path |