Skip to content

Commit

Permalink
fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaanRol committed Aug 24, 2018
1 parent 318e81e commit f42bc66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pycqed/tests/test_linear_filter_distortions.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import unittest
import numpy as np
import pycqed.instrument_drivers.meta_instrument.lfilt_kernel_object as lko

import pycqed.instrument_drivers.virtual_instruments.virtual_AWG8 as v8

class Test_LinDistortionKernelObject(unittest.TestCase):

@classmethod
def setUpClass(self):
self.k0 = lko.LinDistortionKernel('k0')
self.AWG = v8.VirtualAWG8('DummyAWG8')
self.k0.instr_AWG(self.AWG.name)
self.k0.cfg_awg_channel(1)

def setUp(self):
self.k0.cfg_sampling_rate(2.4e9)
Expand All @@ -16,6 +19,7 @@ def setUp(self):
self.k0.filter_model_01({'model': 'exponential',
'params': {'amp': 4.2035373039155806, 'tau': 5.9134605614601521e-06}})


def test_print_overview(self):
# only test that it doesn't raise errors
self.k0.print_overview()
Expand Down Expand Up @@ -46,3 +50,6 @@ def test_reset_kernels(self):
@classmethod
def tearDownClass(self):
self.k0.close()
self.AWG.close()


0 comments on commit f42bc66

Please sign in to comment.