powergridforge 1.1.3__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.
- gridforge/__init__.py +8 -0
- gridforge/app_cli.py +21 -0
- gridforge/config_app.py +1944 -0
- gridforge/config_io.py +102 -0
- gridforge/construct.py +1065 -0
- gridforge/data.py +430 -0
- gridforge/matpower_io.py +473 -0
- gridforge/numpy_compat.py +35 -0
- gridforge/opt.py +583 -0
- gridforge/plot.py +324 -0
- gridforge/reference_data/__init__.py +13 -0
- gridforge/reference_data/tx123bt.py +456 -0
- powergridforge-1.1.3.dist-info/METADATA +214 -0
- powergridforge-1.1.3.dist-info/RECORD +18 -0
- powergridforge-1.1.3.dist-info/WHEEL +5 -0
- powergridforge-1.1.3.dist-info/entry_points.txt +2 -0
- powergridforge-1.1.3.dist-info/licenses/LICENSE +21 -0
- powergridforge-1.1.3.dist-info/top_level.txt +1 -0
gridforge/__init__.py
ADDED
gridforge/app_cli.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Console launcher for the GridForge Streamlit app.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main() -> None:
|
|
12
|
+
try:
|
|
13
|
+
from streamlit.web import cli as stcli
|
|
14
|
+
except ImportError as exc:
|
|
15
|
+
raise SystemExit(
|
|
16
|
+
"The GridForge app requires Streamlit. Install it with `pip install \"gridforge[app]\"`."
|
|
17
|
+
) from exc
|
|
18
|
+
|
|
19
|
+
app_path = os.path.join(os.path.dirname(__file__), "config_app.py")
|
|
20
|
+
sys.argv = ["streamlit", "run", app_path]
|
|
21
|
+
raise SystemExit(stcli.main())
|