summaryrefslogtreecommitdiffstats
path: root/python/dpd/Adapt.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-30 16:23:15 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-30 16:23:15 +0200
commit4556bf9eeb5083935ead5df3a436d18a3016cfcd (patch)
treebb9eaaea56d42b3a342892d88b8f89cfcfea6400 /python/dpd/Adapt.py
parent01cb197301ec5e701a79de29aea7fab4f32fe793 (diff)
downloaddabmod-4556bf9eeb5083935ead5df3a436d18a3016cfcd.tar.gz
dabmod-4556bf9eeb5083935ead5df3a436d18a3016cfcd.tar.bz2
dabmod-4556bf9eeb5083935ead5df3a436d18a3016cfcd.zip
Do not use py3.6 f-strings for compatibility with py3.5
Diffstat (limited to 'python/dpd/Adapt.py')
-rw-r--r--python/dpd/Adapt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/dpd/Adapt.py b/python/dpd/Adapt.py
index a30f0c8..745a507 100644
--- a/python/dpd/Adapt.py
+++ b/python/dpd/Adapt.py
@@ -76,7 +76,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("sdr", "txgain"))
except ValueError as e:
- logging.warning(f"Adapt: get_txgain error: {e}")
+ logging.warning("Adapt: get_txgain error: {}".format(e))
return -1.0
def set_rxgain(self, gain: float) -> None:
@@ -90,7 +90,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("sdr", "rxgain"))
except ValueError as e:
- logging.warning(f"Adapt: get_rxgain error: {e}")
+ logging.warning("Adapt: get_rxgain error: {}".format(e))
return -1.0
def set_digital_gain(self, gain: float) -> None:
@@ -102,7 +102,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("gain", "digital"))
except ValueError as e:
- logging.warning(f"Adapt: get_digital_gain error: {e}")
+ logging.warning("Adapt: get_digital_gain error: {}".format(e))
return -1.0
def get_predistorter(self):