PyChOpMarg 0.1.3__tar.gz → 1.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.
@@ -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: 0.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: pyside6
35
- Requires-Dist: scikit-rf>=0.29
36
- Requires-Dist: traitsui>=8
37
-
38
- # PyChOpMarg
39
- Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
1
+ Metadata-Version: 2.1
2
+ Name: PyChOpMarg
3
+ Version: 1.1.2
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 = "0.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
- "pyside6",
22
- "scikit-rf>=0.29",
23
- "traitsui>=8",
24
- ]
25
- keywords=["com", "channel", "margin"]
26
- classifiers=[
27
- "Development Status :: 2 - Pre-Alpha",
28
- "Environment :: Console",
29
- "Intended Audience :: Developers",
30
- "Intended Audience :: Education",
31
- "Intended Audience :: Telecommunications Industry",
32
- "Intended Audience :: Science/Research",
33
- "License :: OSI Approved :: BSD License",
34
- "Operating System :: OS Independent",
35
- "Programming Language :: Python",
36
- "Programming Language :: Python :: 3.9",
37
- "Programming Language :: Python :: 3.10",
38
- "Programming Language :: Python :: 3.11",
39
- "Programming Language :: Python :: Implementation :: CPython",
40
- "Topic :: Adaptive Technologies",
41
- "Topic :: Scientific/Engineering",
42
- "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
43
- "Topic :: Scientific/Engineering :: Visualization",
44
- "Topic :: System :: Emulators",
45
- "Topic :: System :: Networking",
46
- "Topic :: Utilities"
47
- ]
48
-
49
- [project.scripts]
50
- pychopmarg = "pychopmarg.cli:cli"
51
-
52
- [tool.setuptools.packages.find]
53
- where = ["src"]
54
-
55
- [tool.black]
56
- line-length = 119
57
-
58
- [tool.isort]
59
- # profile = "black"
60
- known_first_party = ["pychopmarg"]
61
- known_third_party = ["numpy", "scipy", "scikit-rf"]
62
-
63
- [tool.docformatter]
64
- wrap-summaries = 0
65
-
66
- [tool.pytest.ini_options]
67
- minversion = "7.0"
68
- addopts = "-vv --durations=3"
69
- xfail_strict=true
70
-
71
- [tool.pylint.master]
72
- fail-under = 9.0
73
-
74
- [tool.pylint.messages_control]
75
- disable = [
76
- "invalid-name",
77
- "line-too-long",
78
- ]
79
-
80
- [tool.pylint.format]
81
- max-line-length = 119
82
-
83
- [tool.pydocstyle]
84
- ignore = [
85
- "D105", # Missing docstring in magic method
86
- "D107", # Missing docstring in __init__
87
- ]
88
-
89
- [[tool.mypy.overrides]]
90
- module = [
91
- "scipy.*",
92
- "skrf.*",
93
- "chaco.*",
94
- "enable.*",
95
- "pyface.*",
96
- "traits.*",
97
- "traitsui.*"
98
- ]
99
- ignore_missing_imports = true
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.2"
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: 0.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: pyside6
35
- Requires-Dist: scikit-rf>=0.29
36
- Requires-Dist: traitsui>=8
37
-
38
- # PyChOpMarg
39
- Python implementation of COM, as per IEEE 802.3-22 Annex 93A.
1
+ Metadata-Version: 2.1
2
+ Name: PyChOpMarg
3
+ Version: 1.1.2
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,5 +1,6 @@
1
1
  chaco>=6.0.0
2
2
  click
3
+ numpy<2
3
4
  pyside6
4
5
  scikit-rf>=0.29
5
6
  traitsui>=8
@@ -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)