You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-51Lines changed: 8 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ PandaModelsBackend provides a high-fidelity backend for [Grid2op](https://github
8
8
9
9
```pip install pandamodelsbackend```
10
10
11
-
Refer to [test_basic_usage](tests/test_basic_usage.py) for full independently runable example.
11
+
Refer to [test_basic_usage](pandamodelsbackend/tests/test_basic_usage.py) for full independently runable example.
12
12
13
13
```
14
14
import grid2op
@@ -31,15 +31,15 @@ Both are shown below and are demonstrated (sort-of, for installers) in [GitHub A
31
31
You'll need to separately install certain dependencies into Python and others into Julia. You never need to enter the Julia REPL.
32
32
If you get tangled up, the CI file is a good, proven route to consult.
33
33
[Docs at pandapower](https://pandapower.readthedocs.io/en/v2.6.0/opf/powermodels.html) may also be helpful.
34
-
There are a lot of acceptable ways to get Python+Julia working, so as long as [`python-jl tests/test_backend_api.py`](tests/test_backend_api.py) is working at the end, you're probably good to run grid2op.
34
+
There are a lot of acceptable ways to get Python+Julia working, so as long as [`python-jl pandamodelsbackend/tests/test_backend_api.py`](pandamodelsbackend/tests/test_backend_api.py) is working at the end, you're probably good to run grid2op.
35
35
36
36
##### Notes
37
37
38
38
* This software stack won't work on M1 Macs.
39
39
* Conda can be used for Python and Julia for Linux and Intel Macs. There isn't a `julia` package for Silicon Macs, so you'll need to use the Julia installer (+ conda or installer Python).
40
40
* A few problems and solutions have been collected [here](#troubleshooting-the-software-stack).
41
41
42
-
####Using a Python virtual environment
42
+
### Using a Python virtual environment
43
43
44
44
- Create a python virtual environment
45
45
```python3 -m venv venv```
@@ -72,56 +72,13 @@ There are a lot of acceptable ways to get Python+Julia working, so as long as [`
72
72
73
73
Access the package manager again in julia by typing ]. Now install the packages: ```add PyCall```. To pass the python environment variable, running build PyCall inside the julia package manager may be necessary.
74
74
75
-
####Using Conda
75
+
### Using Conda
76
76
77
-
0. copy a conda env spec file like [unix.yaml](devtools/conda-envs/unix.yaml). Customize python version, environment name, etc.
78
-
79
-
```
80
-
# 1. create a new conda env from the spec.
81
-
conda env create -f unix.yaml && conda activate test
77
+
A Linux install script is provided at [linux_conda_install.sh](devtools/linux_conda_install.sh) using Conda for Python and Julia dependencies. A *snapshot* (not necessarily latest) is shown below.
82
78
83
-
# 2. install editable PandaModelsBackend
84
-
git clone https://github.com/gt-sse-center/PandaModelsBackend.git && cd PandaModelsBackend
85
-
pip install -e .
79
+
0. copy a conda env spec file like [unix.yaml](devtools/conda-envs/unix.yaml). Customize python version, environment name, etc.
86
80
87
-
# 3. install PowerModels into Julia
88
-
# equivalent to entering pkg mode of Julia REPL, adding packages, and exiting REPL via:
0 commit comments