PyChOpMarg 2.0.1__tar.gz → 2.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.
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/PKG-INFO +5 -2
- pychopmarg-2.1.2/README.md +5 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/pyproject.toml +1 -1
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/PyChOpMarg.egg-info/PKG-INFO +5 -2
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/PyChOpMarg.egg-info/SOURCES.txt +5 -1
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/__init__.py +1 -1
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/__main__.py +4 -2
- pychopmarg-2.1.2/src/pychopmarg/cli.py +51 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/com.py +375 -480
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/common.py +7 -3
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/noise.py +64 -51
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/pychopmarg/optimize.py +68 -56
- pychopmarg-2.1.2/src/pychopmarg/utility/__init__.py +6 -0
- pychopmarg-2.1.2/src/pychopmarg/utility/filter.py +118 -0
- pychopmarg-2.1.2/src/pychopmarg/utility/general.py +116 -0
- pychopmarg-2.1.2/src/pychopmarg/utility/probability.py +125 -0
- pychopmarg-2.1.2/src/pychopmarg/utility/sparams.py +321 -0
- pychopmarg-2.0.1/README.md +0 -2
- pychopmarg-2.0.1/src/pychopmarg/cli.py +0 -51
- pychopmarg-2.0.1/src/pychopmarg/utility.py +0 -505
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/LICENSE +0 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/setup.cfg +0 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/PyChOpMarg.egg-info/dependency_links.txt +0 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/PyChOpMarg.egg-info/entry_points.txt +0 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/src/PyChOpMarg.egg-info/requires.txt +0 -0
- {pychopmarg-2.0.1 → pychopmarg-2.1.2}/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.
|
|
3
|
+
Version: 2.1.2
|
|
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
|
-
|
|
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)
|
|
@@ -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.
|
|
12
|
+
version = "2.1.2"
|
|
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.
|
|
3
|
+
Version: 2.1.2
|
|
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
|
-
|
|
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)
|