vmecdash 0.1.0__py3-none-any.whl
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.
- vmecdash/__init__.py +8 -0
- vmecdash/cli.py +26 -0
- vmecdash/core/__init__.py +4 -0
- vmecdash/core/vmec_jax.py +966 -0
- vmecdash/dash_app/__init__.py +2 -0
- vmecdash/dash_app/app.py +790 -0
- vmecdash/dash_app/assets/icon_stell.png +0 -0
- vmecdash/dash_app/assets/icon_stell_circle.png +0 -0
- vmecdash/dash_app/assets/icon_stell_noback.png +0 -0
- vmecdash/dash_app/assets/icon_stell_round.png +0 -0
- vmecdash/dash_app/cards.py +175 -0
- vmecdash/dash_app/controls.py +263 -0
- vmecdash/py.typed +1 -0
- vmecdash/renderers/__init__.py +18 -0
- vmecdash/renderers/fieldline.py +114 -0
- vmecdash/renderers/overview.py +57 -0
- vmecdash/renderers/profiles.py +34 -0
- vmecdash/renderers/three_d.py +58 -0
- vmecdash/renderers/two_d.py +231 -0
- vmecdash/stats.py +110 -0
- vmecdash/theme.py +38 -0
- vmecdash/view_schema.py +261 -0
- vmecdash/vscode_backend.py +248 -0
- vmecdash-0.1.0.dist-info/METADATA +145 -0
- vmecdash-0.1.0.dist-info/RECORD +29 -0
- vmecdash-0.1.0.dist-info/WHEEL +5 -0
- vmecdash-0.1.0.dist-info/entry_points.txt +2 -0
- vmecdash-0.1.0.dist-info/licenses/LICENSE +21 -0
- vmecdash-0.1.0.dist-info/top_level.txt +1 -0
vmecdash/__init__.py
ADDED
vmecdash/cli.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main(argv: list[str] | None = None) -> int:
|
|
7
|
+
parser = argparse.ArgumentParser(prog="vmecdash")
|
|
8
|
+
subparsers = parser.add_subparsers(dest="command")
|
|
9
|
+
serve_parser = subparsers.add_parser("serve", help="Run the standalone Dash app")
|
|
10
|
+
serve_parser.add_argument("--host", default="127.0.0.1")
|
|
11
|
+
serve_parser.add_argument("--port", type=int, default=8050)
|
|
12
|
+
serve_parser.add_argument("--debug", action="store_true")
|
|
13
|
+
|
|
14
|
+
args = parser.parse_args(argv)
|
|
15
|
+
if args.command == "serve":
|
|
16
|
+
from vmecdash.dash_app.app import app
|
|
17
|
+
|
|
18
|
+
app.run(host=args.host, port=args.port, debug=args.debug)
|
|
19
|
+
return 0
|
|
20
|
+
parser.print_help()
|
|
21
|
+
return 2
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if __name__ == "__main__":
|
|
25
|
+
raise SystemExit(main())
|
|
26
|
+
|