harm-analysis 1.2.1__tar.gz → 1.4.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: harm-analysis
3
- Version: 1.2.1
3
+ Version: 1.4.0
4
4
  Summary: A Python library to estimate parameters from a signal containing a tone.
5
5
  Keywords: DSP,Signal-Processing,THD,SNR
6
6
  Author-Email: Eric Macedo <ericsmacedo@gmail.com>
@@ -14,23 +14,48 @@ Project-URL: Homepage, https://github.com/ericsmacedo/harm-analysis
14
14
  Project-URL: Documentation, https://harm-analysis.readthedocs.io/en/stable/
15
15
  Project-URL: Bug Tracker, https://github.com/ericsmacedo/harm-analysis/issues
16
16
  Requires-Python: <4.0,>=3.10.0
17
+ Requires-Dist: bottleneck>=1.6.0
17
18
  Requires-Dist: click>=8.2.1
18
19
  Requires-Dist: matplotlib>=3.10.3
19
20
  Requires-Dist: numpy>=2.2.6
21
+ Requires-Dist: rich>=14.1.0
20
22
  Requires-Dist: scipy>=1.15.3
21
23
  Description-Content-Type: text/markdown
22
24
 
23
25
 
24
26
  [![PyPI Version](https://badge.fury.io/py/harm-analysis.svg)](https://badge.fury.io/py/harm-analysis)
25
27
  [![Python Build](https://github.com/ericsmacedo/harm-analysis/actions/workflows/main.yml/badge.svg)](https://github.com/ericsmacedo/harm-analysis/actions/workflows/main.yml)
26
- [![Documentation](https://readthedocs.org/projects/harm-analysis/badge/?version=stable)](https://harm-analysis.readthedocs.io/en/stable/)
28
+ [![Documentation](https://readthedocs.org/projects/harm-analysis/badge/?version=latest)](https://harm-analysis.readthedocs.io/en/latest/)
27
29
  [![Coverage Status](https://coveralls.io/repos/github/ericsmacedo/harm-analysis/badge.svg?branch=main)](https://coveralls.io/github/ericsmacedo/harm-analysis?branch=main)
28
30
  [![python-versions](https://img.shields.io/pypi/pyversions/harm-analysis.svg)](https://pypi.python.org/pypi/harm-analysis)
29
31
  [![semantic-versioning](https://img.shields.io/badge/semver-2.0.0-green)](https://semver.org/)
30
32
 
31
33
  [![Downloads](https://img.shields.io/pypi/dm/harm-analysis.svg?label=pypi%20downloads)](https://pypi.python.org/pypi/harm-analysis)
32
- [![Contributors](https://img.shields.io/github/contributors/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/graphs/contributors/)
33
34
  [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
34
35
  [![Issues](https://img.shields.io/github/issues/ericsmacedo/harm-analysis)](https://github.com/ericsmacedo/harm-analysis/issues)
35
- [![PRs open](https://img.shields.io/github/issues-pr/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/pulls)
36
- [![PRs done](https://img.shields.io/github/issues-pr-closed/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/pulls?q=is%3Apr+is%3Aclosed)
36
+
37
+ # Harmonic Analysis package
38
+
39
+ * [Documentation](https://harm-analysis.readthedocs.io/en/latest/)
40
+ * [PyPI](https://pypi.org/project/harm-analysis/)
41
+ * [Sources](https://github.com/ericsmacedo/harm-analysis)
42
+ * [Issues](https://github.com/ericsmacedo/harm-analysis/issues)
43
+
44
+ ## Introduction
45
+
46
+ The harmonic analysis package uses FFT to estimate parameters of an input signal.
47
+ The package provides two main functions:
48
+
49
+ - `harm_analysis`: for simulations with an injected tone, returning SNR, THDN, Noise, etc.
50
+ - `spec_analysis`: for cases without an injected tone, that auto-detects DC, tones, and noise from the spectrum.
51
+
52
+ See [usage](./docs/usage.md) for examples.
53
+
54
+
55
+ ## Installation
56
+
57
+ Installing it is pretty easy:
58
+
59
+ ```bash
60
+ pip install harm-analysis
61
+ ```
@@ -1,14 +1,37 @@
1
1
 
2
2
  [![PyPI Version](https://badge.fury.io/py/harm-analysis.svg)](https://badge.fury.io/py/harm-analysis)
3
3
  [![Python Build](https://github.com/ericsmacedo/harm-analysis/actions/workflows/main.yml/badge.svg)](https://github.com/ericsmacedo/harm-analysis/actions/workflows/main.yml)
4
- [![Documentation](https://readthedocs.org/projects/harm-analysis/badge/?version=stable)](https://harm-analysis.readthedocs.io/en/stable/)
4
+ [![Documentation](https://readthedocs.org/projects/harm-analysis/badge/?version=latest)](https://harm-analysis.readthedocs.io/en/latest/)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ericsmacedo/harm-analysis/badge.svg?branch=main)](https://coveralls.io/github/ericsmacedo/harm-analysis?branch=main)
6
6
  [![python-versions](https://img.shields.io/pypi/pyversions/harm-analysis.svg)](https://pypi.python.org/pypi/harm-analysis)
7
7
  [![semantic-versioning](https://img.shields.io/badge/semver-2.0.0-green)](https://semver.org/)
8
8
 
9
9
  [![Downloads](https://img.shields.io/pypi/dm/harm-analysis.svg?label=pypi%20downloads)](https://pypi.python.org/pypi/harm-analysis)
10
- [![Contributors](https://img.shields.io/github/contributors/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/graphs/contributors/)
11
10
  [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
12
11
  [![Issues](https://img.shields.io/github/issues/ericsmacedo/harm-analysis)](https://github.com/ericsmacedo/harm-analysis/issues)
13
- [![PRs open](https://img.shields.io/github/issues-pr/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/pulls)
14
- [![PRs done](https://img.shields.io/github/issues-pr-closed/ericsmacedo/harm-analysis.svg)](https://github.com/ericsmacedo/harm-analysis/pulls?q=is%3Apr+is%3Aclosed)
12
+
13
+ # Harmonic Analysis package
14
+
15
+ * [Documentation](https://harm-analysis.readthedocs.io/en/latest/)
16
+ * [PyPI](https://pypi.org/project/harm-analysis/)
17
+ * [Sources](https://github.com/ericsmacedo/harm-analysis)
18
+ * [Issues](https://github.com/ericsmacedo/harm-analysis/issues)
19
+
20
+ ## Introduction
21
+
22
+ The harmonic analysis package uses FFT to estimate parameters of an input signal.
23
+ The package provides two main functions:
24
+
25
+ - `harm_analysis`: for simulations with an injected tone, returning SNR, THDN, Noise, etc.
26
+ - `spec_analysis`: for cases without an injected tone, that auto-detects DC, tones, and noise from the spectrum.
27
+
28
+ See [usage](./docs/usage.md) for examples.
29
+
30
+
31
+ ## Installation
32
+
33
+ Installing it is pretty easy:
34
+
35
+ ```bash
36
+ pip install harm-analysis
37
+ ```
@@ -16,9 +16,11 @@ classifiers = [
16
16
  ]
17
17
  requires-python = ">=3.10.0,<4.0"
18
18
  dependencies = [
19
+ "bottleneck>=1.6.0",
19
20
  "click>=8.2.1",
20
21
  "matplotlib>=3.10.3",
21
22
  "numpy>=2.2.6",
23
+ "rich>=14.1.0",
22
24
  "scipy>=1.15.3",
23
25
  ]
24
26
  keywords = [
@@ -27,7 +29,7 @@ keywords = [
27
29
  "THD",
28
30
  "SNR",
29
31
  ]
30
- version = "1.2.1"
32
+ version = "1.4.0"
31
33
 
32
34
  [project.urls]
33
35
  Homepage = "https://github.com/ericsmacedo/harm-analysis"
@@ -35,12 +37,14 @@ Documentation = "https://harm-analysis.readthedocs.io/en/stable/"
35
37
  "Bug Tracker" = "https://github.com/ericsmacedo/harm-analysis/issues"
36
38
 
37
39
  [project.scripts]
38
- harm-analysis = "harm_analysis.cli:cli"
40
+ harm-analysis = "harm_analysis.cli:harm_analysis_cmd"
41
+ spec-analysis = "harm_analysis.cli:spec_analysis_cmd"
39
42
 
40
43
  [dependency-groups]
41
44
  dev = [
42
45
  "contextlib-chdir>=1.0.2",
43
46
  "coveralls>=3.3.1",
47
+ "invoke>=2.2.0",
44
48
  "mkdocs-click>=0.8.1",
45
49
  "mkdocs-include-markdown-plugin>=6.0.5",
46
50
  "mkdocs-literate-nav>=0.6.1",
@@ -21,9 +21,9 @@
21
21
  # SOFTWARE.
22
22
  """Harmonic Analysis."""
23
23
 
24
- from .harm_analysis import dc_measurement, harm_analysis
24
+ from ._harm_analysis import harm_analysis, spec_analysis
25
25
 
26
26
  __all__ = [
27
- "dc_measurement",
28
27
  "harm_analysis",
28
+ "spec_analysis",
29
29
  ]