PyChOpMarg 3.2.0__tar.gz → 3.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.
Files changed (50) hide show
  1. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/PKG-INFO +1 -1
  2. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/pyproject.toml +2 -1
  3. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/PKG-INFO +1 -1
  4. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/SOURCES.txt +3 -0
  5. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/cli.py +7 -2
  6. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/com.py +609 -154
  7. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/common.py +4 -0
  8. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/config/ieee_8023dj.py +1 -1
  9. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/config/ieee_8023dj_d3p3.py +7 -6
  10. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/config/template.py +69 -4
  11. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/excel.py +173 -12
  12. pychopmarg-3.4.0/src/pychopmarg/mlsd.py +186 -0
  13. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/noise.py +199 -40
  14. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/optimize.py +300 -93
  15. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/filter.py +137 -8
  16. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/jupyter.py +12 -2
  17. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/probability.py +38 -38
  18. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/sparams.py +2 -2
  19. pychopmarg-3.4.0/tests/test_cli.py +64 -0
  20. pychopmarg-3.4.0/tests/test_com.py +665 -0
  21. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_devmodel.py +12 -0
  22. pychopmarg-3.4.0/tests/test_excel.py +251 -0
  23. pychopmarg-3.4.0/tests/test_filter.py +53 -0
  24. pychopmarg-3.4.0/tests/test_mlsd.py +79 -0
  25. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_probability.py +42 -1
  26. pychopmarg-3.2.0/tests/test_cli.py +0 -24
  27. pychopmarg-3.2.0/tests/test_com.py +0 -187
  28. pychopmarg-3.2.0/tests/test_excel.py +0 -78
  29. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/LICENSE +0 -0
  30. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/README.md +0 -0
  31. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/setup.cfg +0 -0
  32. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/dependency_links.txt +0 -0
  33. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/entry_points.txt +0 -0
  34. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/requires.txt +0 -0
  35. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/PyChOpMarg.egg-info/top_level.txt +0 -0
  36. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/__init__.py +0 -0
  37. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/__main__.py +0 -0
  38. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/config/__init__.py +0 -0
  39. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/config/ieee_8023by.py +0 -0
  40. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/devmodel.py +0 -0
  41. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/matlab.py +0 -0
  42. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/mfiles/pychopmarg_com.m +0 -0
  43. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/plot.py +0 -0
  44. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/py.typed +0 -0
  45. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/__init__.py +0 -0
  46. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/src/pychopmarg/utility/general.py +0 -0
  47. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_general.py +0 -0
  48. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_imports.py +0 -0
  49. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_matlab.py +0 -0
  50. {pychopmarg-3.2.0 → pychopmarg-3.4.0}/tests/test_template.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyChOpMarg
3
- Version: 3.2.0
3
+ Version: 3.4.0
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
@@ -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 = "3.2.0"
12
+ version = "3.4.0"
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"
@@ -113,6 +113,7 @@ dev = [
113
113
  "matplotlib>=3.10.9",
114
114
  "mcp>=2.0.0",
115
115
  "mypy>=1.19.1",
116
+ "myst-parser>=4.0.0",
116
117
  "pandas-stubs>=2.3.3.260113",
117
118
  "pip>=25.3",
118
119
  "pytest>=9.0.2",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyChOpMarg
3
- Version: 3.2.0
3
+ Version: 3.4.0
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
@@ -15,6 +15,7 @@ src/pychopmarg/common.py
15
15
  src/pychopmarg/devmodel.py
16
16
  src/pychopmarg/excel.py
17
17
  src/pychopmarg/matlab.py
18
+ src/pychopmarg/mlsd.py
18
19
  src/pychopmarg/noise.py
19
20
  src/pychopmarg/optimize.py
20
21
  src/pychopmarg/plot.py
@@ -35,8 +36,10 @@ tests/test_cli.py
35
36
  tests/test_com.py
36
37
  tests/test_devmodel.py
37
38
  tests/test_excel.py
39
+ tests/test_filter.py
38
40
  tests/test_general.py
39
41
  tests/test_imports.py
40
42
  tests/test_matlab.py
43
+ tests/test_mlsd.py
41
44
  tests/test_probability.py
42
45
  tests/test_template.py
@@ -59,11 +59,16 @@ def cli(ctx):
59
59
  # @cli.command(context_settings=dict(help_option_names=["-h", "--help"]))
60
60
  @cli.command(context_settings={"help_option_names": ["-h", "--help"]})
61
61
  @click.argument("notebook-file", type=click.Path(exists=True))
62
- def run_notebook(notebook_file: Path):
62
+ @click.option("--procs", "-p", type=click.IntRange(min=0), default=None,
63
+ help="Processes per EQ optimization (0: one per CPU). Default: $PYCHOPMARG_PROCS, else 1.")
64
+ def run_notebook(notebook_file: Path, procs: Optional[int] = None):
63
65
  """
64
66
  Run a Jupyter notebook in place w/o opening a browser tab.
67
+
68
+ With --procs, each COM calculation's EQ optimization runs in that many processes,
69
+ when it's a full search (no "Local Search"), giving the same results, faster.
65
70
  """
66
- execute_notebook(notebook_file)
71
+ execute_notebook(notebook_file, n_procs=procs)
67
72
 
68
73
 
69
74
  # @cli.command(context_settings=dict(help_option_names=["-h", "--help"]))