aboutsummaryrefslogtreecommitdiffstats
path: root/gui/dpd/__init__.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 15:44:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 15:44:11 +0100
commit90255c8d0d69f2843c72c41faab57c3905fbf906 (patch)
treee250242ff720448ba39e6afc8f8a9e6461adcd13 /gui/dpd/__init__.py
parentd952405886dab44f12c1de53b57912b34320c7c8 (diff)
downloaddabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.gz
dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.tar.bz2
dabmod-90255c8d0d69f2843c72c41faab57c3905fbf906.zip
Add plots to predistortion page
Diffstat (limited to 'gui/dpd/__init__.py')
-rw-r--r--gui/dpd/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/dpd/__init__.py b/gui/dpd/__init__.py
index 2c7649b..9009436 100644
--- a/gui/dpd/__init__.py
+++ b/gui/dpd/__init__.py
@@ -26,7 +26,7 @@ from . import Capture
import numpy as np
class DPD:
- def __init__(self, samplerate=8192000):
+ def __init__(self, plot_dir, samplerate=8192000):
self.samplerate = samplerate
oversample = int(self.samplerate / 2048000)
@@ -40,7 +40,7 @@ class DPD:
port = 50055
samples_to_capture = 81920
- self.capture = Capture.Capture(self.samplerate, port, samples_to_capture)
+ self.capture = Capture.Capture(self.samplerate, port, samples_to_capture, plot_dir)
def status(self):
r = {}