PyChOpMarg 2.0.1__tar.gz → 2.1.1__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.
Files changed (26) hide show
  1. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/PKG-INFO +5 -2
  2. pychopmarg-2.1.1/README.md +5 -0
  3. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/pyproject.toml +1 -1
  4. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/PKG-INFO +5 -2
  5. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/SOURCES.txt +5 -1
  6. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/__init__.py +1 -1
  7. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/__main__.py +4 -2
  8. pychopmarg-2.1.1/src/pychopmarg/cli.py +51 -0
  9. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/com.py +312 -431
  10. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/common.py +4 -3
  11. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/noise.py +44 -36
  12. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/pychopmarg/optimize.py +28 -28
  13. pychopmarg-2.1.1/src/pychopmarg/utility/__init__.py +6 -0
  14. pychopmarg-2.1.1/src/pychopmarg/utility/filter.py +124 -0
  15. pychopmarg-2.1.1/src/pychopmarg/utility/general.py +114 -0
  16. pychopmarg-2.1.1/src/pychopmarg/utility/probability.py +124 -0
  17. pychopmarg-2.1.1/src/pychopmarg/utility/sparams.py +312 -0
  18. pychopmarg-2.0.1/README.md +0 -2
  19. pychopmarg-2.0.1/src/pychopmarg/cli.py +0 -51
  20. pychopmarg-2.0.1/src/pychopmarg/utility.py +0 -505
  21. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/LICENSE +0 -0
  22. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/setup.cfg +0 -0
  23. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/dependency_links.txt +0 -0
  24. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/entry_points.txt +0 -0
  25. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/requires.txt +0 -0
  26. {pychopmarg-2.0.1 → pychopmarg-2.1.1}/src/PyChOpMarg.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyChOpMarg
3
- Version: 2.0.1
3
+ Version: 2.1.1
4
4
  Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A.
5
5
  Author-email: David Banas <capn.freako@gmail.com>
6
6
  License: BSD3
@@ -36,4 +36,7 @@ Requires-Dist: scikit-rf>=0.29
36
36
  Requires-Dist: typing_extensions
37
37
 
38
38
  # PyChOpMarg
39
- Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
39
+
40
+ Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A.
41
+
42
+ - [Documentation](https://pychopmarg.readthedocs.io/en/latest/index.html)
@@ -0,0 +1,5 @@
1
+ # PyChOpMarg
2
+
3
+ Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A.
4
+
5
+ - [Documentation](https://pychopmarg.readthedocs.io/en/latest/index.html)
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
9
9
  [project]
10
10
  name = "PyChOpMarg"
11
11
  description = "Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A."
12
- version = "2.0.1"
12
+ version = "2.1.1"
13
13
  authors = [{name = "David Banas", email = "capn.freako@gmail.com"}]
14
14
  urls = { documentation = "https://pychopmarg.readthedocs.io/en/latest/"}
15
15
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyChOpMarg
3
- Version: 2.0.1
3
+ Version: 2.1.1
4
4
  Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A.
5
5
  Author-email: David Banas <capn.freako@gmail.com>
6
6
  License: BSD3
@@ -36,4 +36,7 @@ Requires-Dist: scikit-rf>=0.29
36
36
  Requires-Dist: typing_extensions
37
37
 
38
38
  # PyChOpMarg
39
- Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
39
+
40
+ Python implementation of COM, as per IEEE 802.3-22 Annex 93A/178A.
41
+
42
+ - [Documentation](https://pychopmarg.readthedocs.io/en/latest/index.html)
@@ -14,4 +14,8 @@ src/pychopmarg/com.py
14
14
  src/pychopmarg/common.py
15
15
  src/pychopmarg/noise.py
16
16
  src/pychopmarg/optimize.py
17
- src/pychopmarg/utility.py
17
+ src/pychopmarg/utility/__init__.py
18
+ src/pychopmarg/utility/filter.py
19
+ src/pychopmarg/utility/general.py
20
+ src/pychopmarg/utility/probability.py
21
+ src/pychopmarg/utility/sparams.py
@@ -15,7 +15,7 @@ from importlib.metadata import version as _get_version
15
15
  # Set PEP396 version attribute
16
16
  try:
17
17
  __version__ = _get_version("PyChOpMarg")
18
- except Exception:
18
+ except Exception: # pylint: disable=broad-exception-caught
19
19
  __version__ = "(dev)"
20
20
 
21
21
  __date__ = "October 21, 2024"
@@ -7,5 +7,7 @@ Original Date: 27 August 2024
7
7
  Copyright (c) 2024 David Banas; all rights reserved World wide.
8
8
  """
9
9
 
10
- from pychopmarg.cli import cli
11
- cli()
10
+ # from pychopmarg.cli import cli
11
+ # cli()
12
+ print("Sorry, the PyChOpMarg package is currently only usable as a library.")
13
+ print("It's GUI is currently broken.")
@@ -0,0 +1,51 @@
1
+ """
2
+ Main Entry Point for PyChOpMarg when using the CLI.
3
+
4
+ Original author: David Banas <capn.freako@gmail.com>
5
+
6
+ Original date: March 25, 2024
7
+
8
+ Copyright (c) 2024 David Banas; all rights reserved World wide.
9
+ """
10
+
11
+ # from pathlib import Path
12
+
13
+ # import click # type: ignore
14
+
15
+ # from pychopmarg import __version__
16
+ # from pychopmarg.com import COM
17
+
18
+
19
+ # ToDo: Activate when new `PyChOpMargUI` package is ready.
20
+ # @click.group(invoke_without_command=True, context_settings=dict(help_option_names=["-h", "--help"]))
21
+ # @click.pass_context
22
+ # @click.version_option(version=__version__)
23
+ # def cli(ctx):
24
+ # """
25
+ # PyChOpMargUI GUI.
26
+ # """
27
+
28
+ # if ctx.invoked_subcommand is None: # No sub-command like `sim` given open the GUI like default.
29
+ # theCOM = COM()
30
+
31
+ # # Show the GUI.
32
+ # theCOM.configure_traits(view=traits_view)
33
+
34
+
35
+ # @cli.command(context_settings=dict(help_option_names=["-h", "--help"]))
36
+ # @click.argument("config-file", type=click.Path(exists=True))
37
+ # @click.option("--results", "-r", type=click.Path(), help="Override the results filename.")
38
+ # def run(config_file, results):
39
+ # """
40
+ # Run a COM calculation without opening the GUI.
41
+
42
+ # Will load the CONFIG_FILE from the given filepath, run the
43
+ # COM calculation and then save the results into a file with the same name
44
+ # but a different extension as the configuration file.
45
+ # """
46
+ # theCOM = COM()
47
+ # theCOM.load_configuration(config_file)
48
+ # theCOM.simulate(initial_run=True, update_plots=True)
49
+ # if not results:
50
+ # results = Path(config_file).with_suffix(".pychopmarg_results")
51
+ # theCOM.save_results(results)