Skip to content

Commit

Permalink
Merge pull request #529 from BDonnot/dev-switches
Browse files Browse the repository at this point in the history
first working POC on ieee grid and for backend actions, no regular action, no observation yet
  • Loading branch information
BDonnot authored Sep 18, 2023
2 parents a819a77 + eac1e8c commit 6daf116
Show file tree
Hide file tree
Showing 56 changed files with 5,676 additions and 301 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
grid2op-executor:
docker:
- image: bdonnot/grid2op:test
- image: python:3.10-buster
working_directory: /Grid2Op

python37:
Expand All @@ -29,6 +29,7 @@ jobs:
parallelism: 4
steps:
- checkout
- run: apt-get update -y
- run: apt-get install -y coinor-cbc
- run: python -m pip install virtualenv
- run: python -m virtualenv venv_test
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,12 @@ test_malte.py
example_gym_act.py
test_to_fix.txt
doc_raise_alert.py
_profiling/profile.html
_profiling/profile.json
actspace_converter.py
grid2op/data_test/input_data_local/
test_sim2real_battery.py
grid2op/tests/list_test_debug

# profiling files
**.prof
10 changes: 8 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ Change Log

[1.9.5] - 2023-xx-yy
---------------------
- XXX

- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/518
- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/446
- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/523 by having a "_BackendAction" folder instead of a file
- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/522 and adding back certain notebooks to the CI
- [FIXED] an issue when disconnecting loads / generators on msot recent pandas version
- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/527 : now do nothing action are detected in
`act.as_serializable_dict()` AND weird do nothing action can be made through the action space
(`env.action_space({"change_bus": {}})` is not ambiguous, though might not be super efficient...)

[1.9.4] - 2023-09-04
---------------------
Expand Down
2 changes: 1 addition & 1 deletion _profiling/profiler_assessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from utils_benchmark import run_env, str2bool, ProfileAgent

try:
from lightsim2grid.LightSimBackend import LightSimBackend
from lightsim2grid import LightSimBackend
light_sim_avail = True
except ImportError:
light_sim_avail = False
Expand Down
4 changes: 2 additions & 2 deletions _profiling/utils_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def __init__(self,
self.action_space.all_actions = all_actions

# add the action "reset everything to bus 1"
self.action_space.all_actions.append(action_space({"set_bus": np.ones(action_space.dim_topo, dtype=np.int),
self.action_space.all_actions.append(action_space({"set_bus": np.ones(action_space.dim_topo, dtype=int),
"set_line_status": np.ones(action_space.n_line,
dtype=np.int)}))
dtype=int)}))


def print_res(env_klu, env_pp,
Expand Down
2 changes: 1 addition & 1 deletion getting_started/01_Grid2opFramework.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"\n",
"custom_params = Parameters()\n",
"custom_params.MAX_SUB_CHANGED = 1\n",
"env = grid2op.make(\"rte_case14_redisp\", param=custom_params, test=True)"
"env = grid2op.make(\"l2rpn_case14_sandbox\", param=custom_params, test=True)"
]
},
{
Expand Down
Loading

0 comments on commit 6daf116

Please sign in to comment.