summaryrefslogtreecommitdiffstats
path: root/gui/run.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-06-18 16:00:16 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-06-18 16:00:16 +0200
commit9df483045b5622af8902c07b54c7f985e12b1671 (patch)
tree33ea77312758ddc19911e211a41d1eddb85d6177 /gui/run.py
parentb76ebdb856b20a8078c6386bc20e79aa0d8db741 (diff)
downloaddabmod-9df483045b5622af8902c07b54c7f985e12b1671.tar.gz
dabmod-9df483045b5622af8902c07b54c7f985e12b1671.tar.bz2
dabmod-9df483045b5622af8902c07b54c7f985e12b1671.zip
Add DPD page to web gui
Diffstat (limited to 'gui/run.py')
-rwxr-xr-xgui/run.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui/run.py b/gui/run.py
index c5a0568..94f6def 100755
--- a/gui/run.py
+++ b/gui/run.py
@@ -28,6 +28,7 @@ import argparse
from jinja2 import Environment, FileSystemLoader
from api import API
import zmqrc
+import dpd
env = Environment(loader=FileSystemLoader('templates'))
@@ -36,7 +37,8 @@ class Root:
self.config_file = config_file
self.conf = configuration.Configuration(self.config_file)
self.mod_rc = zmqrc.ModRemoteControl("localhost")
- self.api = API(self.mod_rc)
+ self.dpd = dpd.DPD()
+ self.api = API(self.mod_rc, self.dpd)
@cherrypy.expose
def index(self):
@@ -66,6 +68,12 @@ class Root:
js = ["js/odr-modulator.js"]
return tmpl.render(tab='modulator', js=js, is_login=False)
+ @cherrypy.expose
+ def predistortion(self):
+ tmpl = env.get_template("predistortion.html")
+ js = ["js/odr-predistortion.js"]
+ return tmpl.render(tab='predistortion', js=js, is_login=False)
+
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='ODR-DabMod Web GUI')
parser.add_argument('-c', '--config',