diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-18 16:00:16 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-18 16:00:16 +0200 |
commit | 9df483045b5622af8902c07b54c7f985e12b1671 (patch) | |
tree | 33ea77312758ddc19911e211a41d1eddb85d6177 /gui/run.py | |
parent | b76ebdb856b20a8078c6386bc20e79aa0d8db741 (diff) | |
download | dabmod-9df483045b5622af8902c07b54c7f985e12b1671.tar.gz dabmod-9df483045b5622af8902c07b54c7f985e12b1671.tar.bz2 dabmod-9df483045b5622af8902c07b54c7f985e12b1671.zip |
Add DPD page to web gui
Diffstat (limited to 'gui/run.py')
-rwxr-xr-x | gui/run.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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', |