PyChOpMarg 0.1.3__tar.gz → 1.1.3__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-0.1.3 → pychopmarg-1.1.3}/LICENSE +28 -28
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/PKG-INFO +40 -39
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/README.md +2 -2
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/pyproject.toml +100 -99
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/setup.cfg +4 -4
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/PKG-INFO +40 -39
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/requires.txt +1 -0
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/__init__.py +23 -23
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/cli.py +51 -51
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/com.py +1323 -1323
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/common.py +23 -23
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/utility.py +177 -177
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/pychopmarg/view.py +485 -485
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/SOURCES.txt +0 -0
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/dependency_links.txt +0 -0
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/entry_points.txt +0 -0
- {pychopmarg-0.1.3 → pychopmarg-1.1.3}/src/PyChOpMarg.egg-info/top_level.txt +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
BSD 3-Clause License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024, David Banas
|
|
4
|
-
|
|
5
|
-
Redistribution and use in source and binary forms, with or without
|
|
6
|
-
modification, are permitted provided that the following conditions are met:
|
|
7
|
-
|
|
8
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
-
list of conditions and the following disclaimer.
|
|
10
|
-
|
|
11
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
this list of conditions and the following disclaimer in the documentation
|
|
13
|
-
and/or other materials provided with the distribution.
|
|
14
|
-
|
|
15
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
-
contributors may be used to endorse or promote products derived from
|
|
17
|
-
this software without specific prior written permission.
|
|
18
|
-
|
|
19
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024, David Banas
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: PyChOpMarg
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
5
|
-
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
-
License: BSD3
|
|
7
|
-
Project-URL: documentation, https://pychopmarg.readthedocs.io/en/latest/
|
|
8
|
-
Keywords: com,channel,margin
|
|
9
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
-
Classifier: Environment :: Console
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience :: Education
|
|
13
|
-
Classifier: Intended Audience :: Telecommunications Industry
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
-
Classifier: Topic :: Adaptive Technologies
|
|
23
|
-
Classifier: Topic :: Scientific/Engineering
|
|
24
|
-
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
|
|
25
|
-
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
|
-
Classifier: Topic :: System :: Emulators
|
|
27
|
-
Classifier: Topic :: System :: Networking
|
|
28
|
-
Classifier: Topic :: Utilities
|
|
29
|
-
Requires-Python: <3.12,>=3.9
|
|
30
|
-
Description-Content-Type: text/markdown
|
|
31
|
-
License-File: LICENSE
|
|
32
|
-
Requires-Dist: chaco>=6.0.0
|
|
33
|
-
Requires-Dist: click
|
|
34
|
-
Requires-Dist:
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: PyChOpMarg
|
|
3
|
+
Version: 1.1.3
|
|
4
|
+
Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
5
|
+
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
+
License: BSD3
|
|
7
|
+
Project-URL: documentation, https://pychopmarg.readthedocs.io/en/latest/
|
|
8
|
+
Keywords: com,channel,margin
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: Education
|
|
13
|
+
Classifier: Intended Audience :: Telecommunications Industry
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
+
Classifier: Topic :: Adaptive Technologies
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
|
+
Classifier: Topic :: System :: Emulators
|
|
27
|
+
Classifier: Topic :: System :: Networking
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Requires-Python: <3.12,>=3.9
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: chaco>=6.0.0
|
|
33
|
+
Requires-Dist: click
|
|
34
|
+
Requires-Dist: numpy<2
|
|
35
|
+
Requires-Dist: pyside6
|
|
36
|
+
Requires-Dist: scikit-rf>=0.29
|
|
37
|
+
Requires-Dist: traitsui>=8
|
|
38
|
+
|
|
39
|
+
# PyChOpMarg
|
|
40
|
+
Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# PyChOpMarg
|
|
2
|
-
Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
1
|
+
# PyChOpMarg
|
|
2
|
+
Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
@@ -1,99 +1,100 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = [
|
|
3
|
-
"Cython<3",
|
|
4
|
-
"setuptools>=45",
|
|
5
|
-
"swig<4",
|
|
6
|
-
]
|
|
7
|
-
build-backend = "setuptools.build_meta"
|
|
8
|
-
|
|
9
|
-
[project]
|
|
10
|
-
name = "PyChOpMarg"
|
|
11
|
-
description = "Python implementation of COM, as per IEEE 802.3-22 Annex 93A."
|
|
12
|
-
version = "
|
|
13
|
-
authors = [{name = "David Banas", email = "capn.freako@gmail.com"}]
|
|
14
|
-
urls = { documentation = "https://pychopmarg.readthedocs.io/en/latest/"}
|
|
15
|
-
readme = "README.md"
|
|
16
|
-
requires-python = ">=3.9,<3.12"
|
|
17
|
-
license = {text = "BSD3"}
|
|
18
|
-
dependencies = [
|
|
19
|
-
"chaco>=6.0.0",
|
|
20
|
-
"click",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"Intended Audience ::
|
|
31
|
-
"Intended Audience ::
|
|
32
|
-
"Intended Audience ::
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"Programming Language :: Python
|
|
37
|
-
"Programming Language :: Python :: 3.
|
|
38
|
-
"Programming Language :: Python :: 3.
|
|
39
|
-
"Programming Language :: Python ::
|
|
40
|
-
"
|
|
41
|
-
"Topic ::
|
|
42
|
-
"Topic :: Scientific/Engineering
|
|
43
|
-
"Topic :: Scientific/Engineering ::
|
|
44
|
-
"Topic ::
|
|
45
|
-
"Topic :: System ::
|
|
46
|
-
"Topic ::
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"Cython<3",
|
|
4
|
+
"setuptools>=45",
|
|
5
|
+
"swig<4",
|
|
6
|
+
]
|
|
7
|
+
build-backend = "setuptools.build_meta"
|
|
8
|
+
|
|
9
|
+
[project]
|
|
10
|
+
name = "PyChOpMarg"
|
|
11
|
+
description = "Python implementation of COM, as per IEEE 802.3-22 Annex 93A."
|
|
12
|
+
version = "1.1.3"
|
|
13
|
+
authors = [{name = "David Banas", email = "capn.freako@gmail.com"}]
|
|
14
|
+
urls = { documentation = "https://pychopmarg.readthedocs.io/en/latest/"}
|
|
15
|
+
readme = "README.md"
|
|
16
|
+
requires-python = ">=3.9,<3.12"
|
|
17
|
+
license = {text = "BSD3"}
|
|
18
|
+
dependencies = [
|
|
19
|
+
"chaco>=6.0.0",
|
|
20
|
+
"click",
|
|
21
|
+
"numpy<2",
|
|
22
|
+
"pyside6",
|
|
23
|
+
"scikit-rf>=0.29",
|
|
24
|
+
"traitsui>=8",
|
|
25
|
+
]
|
|
26
|
+
keywords=["com", "channel", "margin"]
|
|
27
|
+
classifiers=[
|
|
28
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
29
|
+
"Environment :: Console",
|
|
30
|
+
"Intended Audience :: Developers",
|
|
31
|
+
"Intended Audience :: Education",
|
|
32
|
+
"Intended Audience :: Telecommunications Industry",
|
|
33
|
+
"Intended Audience :: Science/Research",
|
|
34
|
+
"License :: OSI Approved :: BSD License",
|
|
35
|
+
"Operating System :: OS Independent",
|
|
36
|
+
"Programming Language :: Python",
|
|
37
|
+
"Programming Language :: Python :: 3.9",
|
|
38
|
+
"Programming Language :: Python :: 3.10",
|
|
39
|
+
"Programming Language :: Python :: 3.11",
|
|
40
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
41
|
+
"Topic :: Adaptive Technologies",
|
|
42
|
+
"Topic :: Scientific/Engineering",
|
|
43
|
+
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
|
|
44
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
45
|
+
"Topic :: System :: Emulators",
|
|
46
|
+
"Topic :: System :: Networking",
|
|
47
|
+
"Topic :: Utilities"
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[project.scripts]
|
|
51
|
+
pychopmarg = "pychopmarg.cli:cli"
|
|
52
|
+
|
|
53
|
+
[tool.setuptools.packages.find]
|
|
54
|
+
where = ["src"]
|
|
55
|
+
|
|
56
|
+
[tool.black]
|
|
57
|
+
line-length = 119
|
|
58
|
+
|
|
59
|
+
[tool.isort]
|
|
60
|
+
# profile = "black"
|
|
61
|
+
known_first_party = ["pychopmarg"]
|
|
62
|
+
known_third_party = ["numpy", "scipy", "scikit-rf"]
|
|
63
|
+
|
|
64
|
+
[tool.docformatter]
|
|
65
|
+
wrap-summaries = 0
|
|
66
|
+
|
|
67
|
+
[tool.pytest.ini_options]
|
|
68
|
+
minversion = "7.0"
|
|
69
|
+
addopts = "-vv --durations=3"
|
|
70
|
+
xfail_strict=true
|
|
71
|
+
|
|
72
|
+
[tool.pylint.master]
|
|
73
|
+
fail-under = 9.0
|
|
74
|
+
|
|
75
|
+
[tool.pylint.messages_control]
|
|
76
|
+
disable = [
|
|
77
|
+
"invalid-name",
|
|
78
|
+
"line-too-long",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[tool.pylint.format]
|
|
82
|
+
max-line-length = 119
|
|
83
|
+
|
|
84
|
+
[tool.pydocstyle]
|
|
85
|
+
ignore = [
|
|
86
|
+
"D105", # Missing docstring in magic method
|
|
87
|
+
"D107", # Missing docstring in __init__
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[[tool.mypy.overrides]]
|
|
91
|
+
module = [
|
|
92
|
+
"scipy.*",
|
|
93
|
+
"skrf.*",
|
|
94
|
+
"chaco.*",
|
|
95
|
+
"enable.*",
|
|
96
|
+
"pyface.*",
|
|
97
|
+
"traits.*",
|
|
98
|
+
"traitsui.*"
|
|
99
|
+
]
|
|
100
|
+
ignore_missing_imports = true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[egg_info]
|
|
2
|
-
tag_build =
|
|
3
|
-
tag_date = 0
|
|
4
|
-
|
|
1
|
+
[egg_info]
|
|
2
|
+
tag_build =
|
|
3
|
+
tag_date = 0
|
|
4
|
+
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: PyChOpMarg
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
5
|
-
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
-
License: BSD3
|
|
7
|
-
Project-URL: documentation, https://pychopmarg.readthedocs.io/en/latest/
|
|
8
|
-
Keywords: com,channel,margin
|
|
9
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
-
Classifier: Environment :: Console
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience :: Education
|
|
13
|
-
Classifier: Intended Audience :: Telecommunications Industry
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
-
Classifier: Topic :: Adaptive Technologies
|
|
23
|
-
Classifier: Topic :: Scientific/Engineering
|
|
24
|
-
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
|
|
25
|
-
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
|
-
Classifier: Topic :: System :: Emulators
|
|
27
|
-
Classifier: Topic :: System :: Networking
|
|
28
|
-
Classifier: Topic :: Utilities
|
|
29
|
-
Requires-Python: <3.12,>=3.9
|
|
30
|
-
Description-Content-Type: text/markdown
|
|
31
|
-
License-File: LICENSE
|
|
32
|
-
Requires-Dist: chaco>=6.0.0
|
|
33
|
-
Requires-Dist: click
|
|
34
|
-
Requires-Dist:
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: PyChOpMarg
|
|
3
|
+
Version: 1.1.3
|
|
4
|
+
Summary: Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
5
|
+
Author-email: David Banas <capn.freako@gmail.com>
|
|
6
|
+
License: BSD3
|
|
7
|
+
Project-URL: documentation, https://pychopmarg.readthedocs.io/en/latest/
|
|
8
|
+
Keywords: com,channel,margin
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: Education
|
|
13
|
+
Classifier: Intended Audience :: Telecommunications Industry
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
+
Classifier: Topic :: Adaptive Technologies
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
26
|
+
Classifier: Topic :: System :: Emulators
|
|
27
|
+
Classifier: Topic :: System :: Networking
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Requires-Python: <3.12,>=3.9
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: chaco>=6.0.0
|
|
33
|
+
Requires-Dist: click
|
|
34
|
+
Requires-Dist: numpy<2
|
|
35
|
+
Requires-Dist: pyside6
|
|
36
|
+
Requires-Dist: scikit-rf>=0.29
|
|
37
|
+
Requires-Dist: traitsui>=8
|
|
38
|
+
|
|
39
|
+
# PyChOpMarg
|
|
40
|
+
Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"""
|
|
2
|
-
A Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
3
|
-
|
|
4
|
-
.. moduleauthor:: David Banas <capn.freako@gmail.com>
|
|
5
|
-
|
|
6
|
-
Original Author: David Banas <capn.freako@gmail.com>
|
|
7
|
-
|
|
8
|
-
Original Date: 29 February 2024
|
|
9
|
-
|
|
10
|
-
Copyright (c) 2024 by David Banas; all rights reserved World wide.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from importlib.metadata import version as _get_version
|
|
14
|
-
|
|
15
|
-
# Set PEP396 version attribute
|
|
16
|
-
try:
|
|
17
|
-
__version__ = _get_version("PyChOpMarg")
|
|
18
|
-
except Exception:
|
|
19
|
-
__version__ = "(dev)"
|
|
20
|
-
|
|
21
|
-
__date__ = "March 25, 2024"
|
|
22
|
-
__authors__ = "David Banas"
|
|
23
|
-
__copy__ = "Copyright (c) 2024 David Banas"
|
|
1
|
+
"""
|
|
2
|
+
A Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
|
|
3
|
+
|
|
4
|
+
.. moduleauthor:: David Banas <capn.freako@gmail.com>
|
|
5
|
+
|
|
6
|
+
Original Author: David Banas <capn.freako@gmail.com>
|
|
7
|
+
|
|
8
|
+
Original Date: 29 February 2024
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2024 by David Banas; all rights reserved World wide.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from importlib.metadata import version as _get_version
|
|
14
|
+
|
|
15
|
+
# Set PEP396 version attribute
|
|
16
|
+
try:
|
|
17
|
+
__version__ = _get_version("PyChOpMarg")
|
|
18
|
+
except Exception:
|
|
19
|
+
__version__ = "(dev)"
|
|
20
|
+
|
|
21
|
+
__date__ = "March 25, 2024"
|
|
22
|
+
__authors__ = "David Banas"
|
|
23
|
+
__copy__ = "Copyright (c) 2024 David Banas"
|
|
@@ -1,51 +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.view import traits_view
|
|
17
|
-
from pychopmarg.com import COM
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
PyChOpMarg 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)
|
|
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.view import traits_view
|
|
17
|
+
from pychopmarg.com import COM
|
|
18
|
+
|
|
19
|
+
|
|
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
|
+
PyChOpMarg 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)
|