summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog/fm_emph.py
Commit message (Collapse)AuthorAgeFilesLines
* analog: pep8 formattingJosh Morman2021-11-241-61/+63
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* Remove freqz and gnuplot_freqz from gru moduleClayton Smith2020-10-301-12/+0
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-3/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Fix division by zero in fm_preemphClayton Smith2019-07-271-1/+1
|
* analog: correct errors of automatic conversion script in fm_preemphAndrej Rode2019-05-221-1/+2
| | | | | | | | An automatic conversion for python3 mangled the source and introduced a bug. This commit fixes the conversion bug in fm_preemph. Changeset that lead to this bug still has to be analyzed further. Fixes #2286
* Use raw strings for regexp and docstrings that have desired backslashesBrennan Ashton2018-11-121-2/+2
| | | | Resolves #2121 DeprecationWarning: invalid escape sequence /
* docs- moved documentation inside docstringMarc Lichtman2018-10-221-191/+184
|
* Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-35/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| * python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-35/+38
| |
* | Comment typo fixing.luz.paz2018-02-031-2/+2
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* gr-analog: Add safety and default for FM preemphasis filterAndy Walls2016-03-301-48/+31
| | | | | | | | | | | | | The FM preemphasis filter design now precludes the user from inducing a pole on the unit circle at z = -1.0 and z = 1.0. A pole at either of these locations makes the filter unstable and useless: feeding back "+/-inf" into an IIR filter has no good recovery. Also provide a reasonable, maximally safe default of 0.925*fs/2.0 for the high frequency corner, fh. This keeps the slope of the preemphasis filter looking reasonable sane in the whole band; at least for tau=75e-6 and fs=48000.
* gr-analog: FM emphasis filters use "newstyle" tapsAndy Walls2016-03-301-2/+2
| | | | | | | | In redesign of the FM emphasis filters, I fell into the gr-filter implementation trap of the default "oldstyle=True" taps. This caused the pole of the IIR filter to be reflected about the z = j w axis, resulting in an incorrect filter. Set the filters to use newstyle taps.
* gr-analog: Fix FM preemphasis filter and rework deemphasis filterAndy Walls2016-03-291-46/+221
| | | | | | | Add working filters designs for the FM preemphasis Tx filter. Rework the FM deemphasis Rx filter as it was easier to rederive the transfer function, than to determine if the one in use was correct.
* analog: white-space fixesSebastian Koslowski2014-01-041-12/+12
|
* analog: Enabling uninstalled python imports.Ben Reynwar2013-03-071-0/+150