harm-analysis 1.1.0__tar.gz → 1.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {harm-analysis-1.1.0/harm_analysis.egg-info → harm_analysis-1.1.2}/PKG-INFO +2 -2
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/index.rst +3 -3
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis/_harm_analysis.py +1 -2
- {harm-analysis-1.1.0 → harm_analysis-1.1.2/harm_analysis.egg-info}/PKG-INFO +2 -2
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/pyproject.toml +1 -1
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/.gitignore +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/.readthedocs.yaml +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/README.rst +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/Makefile +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/harm_analysis_out_example.png +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/make.bat +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/requirements.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/conf.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/harm_analysis.rst +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/tutorial/examples/run_harm_analysis.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/tutorial/examples/run_shaped_noise_example.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis/__init__.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis/cli.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis.egg-info/SOURCES.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis.egg-info/dependency_links.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis.egg-info/entry_points.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis.egg-info/requires.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/harm_analysis.egg-info/top_level.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/requirents.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/setup.cfg +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/tests/__init__.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/tests/test_cli.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/tests/test_data_cli.txt +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/tests/test_harm_analysis.py +0 -0
- {harm-analysis-1.1.0 → harm_analysis-1.1.2}/tests/test_harm_analysis_cli.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: harm-analysis
|
|
3
|
-
Version: 1.1.
|
|
4
|
-
Summary: A Python library
|
|
3
|
+
Version: 1.1.2
|
|
4
|
+
Summary: A Python library to estimate parameters from a signal containing a tone.
|
|
5
5
|
Author-email: Eric Macedo <ericsmacedo@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Documentation, https://harm-analysis.readthedocs.io/en/latest/
|
|
@@ -70,9 +70,9 @@ The code above also outputs:
|
|
|
70
70
|
total_noise_and_dist [dB]: -42.023784918366445
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
The example below shows how to use the
|
|
74
|
-
the highest spectral component in the signal. For the example, we set
|
|
75
|
-
5 kHz.
|
|
73
|
+
The example below shows how to use the bw argument, for cases where the fundamental
|
|
74
|
+
is not the highest spectral component in the signal. For the example, we set bw to
|
|
75
|
+
5 kHz. For this case, the metrics will only be calculated from 0 Hz to 5 kHz.
|
|
76
76
|
|
|
77
77
|
.. plot:: tutorial/examples/run_shaped_noise_example.py
|
|
78
78
|
:include-source:
|
|
@@ -57,7 +57,6 @@ def _rfft_length(n):
|
|
|
57
57
|
return (n + 1) // 2
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
def _win_metrics(x):
|
|
62
61
|
"""
|
|
63
62
|
Compute the coherent gain and the equivalent noise bandwidth of a window.
|
|
@@ -422,7 +421,7 @@ def harm_analysis(x: np.array,
|
|
|
422
421
|
Number of harmonics used in the THD calculation.
|
|
423
422
|
window : array_like, optional
|
|
424
423
|
Window that will be multiplied with the signal. Default is
|
|
425
|
-
Hann
|
|
424
|
+
Hann window.
|
|
426
425
|
bw : float, optional
|
|
427
426
|
Bandwidth to use for the calculation of the metrics, in same units as FS.
|
|
428
427
|
Also useful to filter another tone (or noise) with amplitude greater than the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: harm-analysis
|
|
3
|
-
Version: 1.1.
|
|
4
|
-
Summary: A Python library
|
|
3
|
+
Version: 1.1.2
|
|
4
|
+
Summary: A Python library to estimate parameters from a signal containing a tone.
|
|
5
5
|
Author-email: Eric Macedo <ericsmacedo@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Documentation, https://harm-analysis.readthedocs.io/en/latest/
|
|
@@ -11,7 +11,7 @@ name = "harm-analysis"
|
|
|
11
11
|
authors = [
|
|
12
12
|
{name = 'Eric Macedo', email = 'ericsmacedo@gmail.com'}
|
|
13
13
|
]
|
|
14
|
-
description = 'A Python library
|
|
14
|
+
description = 'A Python library to estimate parameters from a signal containing a tone.'
|
|
15
15
|
dynamic = ["version"] # This in conjunction with setuptools_scm, will generate the
|
|
16
16
|
# versions dynamically
|
|
17
17
|
readme = "README.rst"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{harm-analysis-1.1.0 → harm_analysis-1.1.2}/docs/source/tutorial/examples/run_harm_analysis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|