diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-24 12:53:58 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 14:41:53 -0500 |
commit | 51ec89501552c35b2bd0721c0501302f224fe44d (patch) | |
tree | 442036c424c286ece0976dcd3c36891cddefcd25 /gnuradio-runtime/python/gnuradio/eng_arg.py | |
parent | e426b9ad20dbbf41326c103b31a7418a80362b06 (diff) |
runtime: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/eng_arg.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/eng_arg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/gnuradio/eng_arg.py b/gnuradio-runtime/python/gnuradio/eng_arg.py index cefc16e222..a86ad94607 100644 --- a/gnuradio-runtime/python/gnuradio/eng_arg.py +++ b/gnuradio-runtime/python/gnuradio/eng_arg.py @@ -14,6 +14,7 @@ Add support for engineering notation to argparse.ArgumentParser import argparse from gnuradio import eng_notation + def intx(string): """ Generic integer type, will interpret string as string literal. @@ -26,6 +27,7 @@ def intx(string): "Invalid integer value: {}".format(string) ) + def eng_float(string): """ Takes a string, returns a float. Accepts engineering notation. @@ -38,4 +40,3 @@ def eng_float(string): raise argparse.ArgumentTypeError( "Invalid engineering notation value: {}".format(string) ) - |