diff options
author | Nao Pross <np@0hm.ch> | 2021-12-04 17:05:29 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-12-04 17:05:29 +0100 |
commit | 9d0910c5140b28a84017b9bbb4def22d15425518 (patch) | |
tree | 26836d9005a93afabbb71edd6fddbc194e601a5f /src/gr-fadingui/python/qa_ber.py | |
parent | Update documentation (diff) | |
parent | Update net.py to decode UDP data stream (diff) | |
download | Fading-9d0910c5140b28a84017b9bbb4def22d15425518.tar.gz Fading-9d0910c5140b28a84017b9bbb4def22d15425518.zip |
Merge branch 'master' of github.com:NaoPross/Fading
Diffstat (limited to '')
-rwxr-xr-x | src/gr-fadingui/python/qa_ber.py | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/gr-fadingui/python/qa_ber.py b/src/gr-fadingui/python/qa_ber.py new file mode 100755 index 0000000..cb6c198 --- /dev/null +++ b/src/gr-fadingui/python/qa_ber.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Copyright 2021 Sara Cinzia Halter. +# +# This is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This software is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this software; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# + +from gnuradio import gr, gr_unittest +from gnuradio import blocks +from ber import ber +import numpy as np + +class qa_ber(gr_unittest.TestCase): + + def setUp(self): + self.tb = gr.top_block() + + def tearDown(self): + self.tb = None + + def test_001_t(self): + # pattern = np.array([0xaa], dtype=np.uint8) + # testdata = np.array([0xc0, 0xfa, 0xae] * 4, dtype=np.uint8) + + # src = blocks.vector_source_b(testdata) + # op = ber(pattern) + + # self.tb.connect(src, op) + # self.tb.run() + pass + + +if __name__ == '__main__': + gr_unittest.run(qa_ber) |