Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.9.6 #547

Merged
merged 52 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
98e4e18
Fixed readme style
benedikt-schesch Sep 18, 2023
808adcb
Merge pull request #531 from benedikt-schesch/readme-style-fixes
BDonnot Sep 19, 2023
61b0839
adding type hints for the backend classes
BDonnot Sep 20, 2023
ad2b9e8
adding type hints for the backend classes
BDonnot Sep 20, 2023
0e3c889
adding type hints for the backend classes
BDonnot Sep 20, 2023
f448a09
Adding type hints for backend classes and examples (#532)
BDonnot Sep 21, 2023
d3875a3
fixing a bug in DC mode where pandapower did not detect some game over
BDonnot Sep 26, 2023
f51d648
adding test for gen also
BDonnot Sep 26, 2023
63c036c
fix a bug in spotting divergence when shunts alone on a bus
BDonnot Sep 28, 2023
48a8fbc
fix the act.remove_line_status_from_topo
BDonnot Sep 28, 2023
4ddded5
fix rte-france#533 and other broken tests
BDonnot Sep 28, 2023
42c0906
fix the tests for storage units
BDonnot Sep 28, 2023
25aad47
fixing conflicts on changelog [skip ci]
BDonnot Sep 28, 2023
85611cb
Merge pull request #534 from BDonnot/bd_dev
BDonnot Sep 28, 2023
aba5f2a
adressing issue rte-france#536 [skip ci]
BDonnot Oct 3, 2023
1937f4d
adding a utility function to better load the grid
BDonnot Oct 6, 2023
55d92a5
adding a utility function to better load the grid [skip ci]
BDonnot Oct 6, 2023
1812d5d
test a generic function to make a testsuite more easily than with cop…
BDonnot Oct 6, 2023
d89e507
trying to adapt the test to make it easier to test easily new backends
BDonnot Oct 9, 2023
100c6da
fixing broken tests after refacto
BDonnot Oct 12, 2023
67ca6e7
fixing broken tests after refacto
BDonnot Oct 12, 2023
ebdea60
fixing broken tests after refacto
BDonnot Oct 12, 2023
6d14072
fixing broken tests after refacto
BDonnot Oct 12, 2023
6248781
fixing broken tests after refacto
BDonnot Oct 12, 2023
872ac76
fix tests after refacto
BDonnot Oct 13, 2023
fcd7365
fix tests after refacto
BDonnot Oct 13, 2023
db9daa8
adressing issue rte-france#538
BDonnot Oct 13, 2023
ab0ea79
trying to fix the circleci config.yml
BDonnot Oct 13, 2023
5989c5b
trying to fix the circleci config.yml
BDonnot Oct 13, 2023
b30f86c
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
6428e2e
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
47a93e0
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
d3ef677
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
68ba549
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
ebfe060
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
78ce144
trying to fix the circleci config.yml
BDonnot Oct 16, 2023
c398c2f
Merge pull request #540 from BDonnot/bd_dev
BDonnot Oct 16, 2023
68b50dc
adding 3.12 wheels for macos and windows
BDonnot Oct 16, 2023
e4d4ae3
addressing rte-france#524
BDonnot Oct 16, 2023
3215f15
adding setuptools as the dependencies in the CI
BDonnot Oct 16, 2023
b548205
adding the chronics id as the return info of the env.step
BDonnot Oct 20, 2023
7650585
adding a backend attribute used to know which file format will be loaded
BDonnot Oct 23, 2023
9ef3cb7
update changelog to point to issue rte-france#429 [skip ci]
BDonnot Oct 24, 2023
6417bbd
improving docs for backend test suite
BDonnot Oct 24, 2023
a26fe3d
adding a test for the backend feature of different format
BDonnot Oct 24, 2023
ff98512
adding script to test environment with grid having different file format
BDonnot Oct 24, 2023
e735c5a
Merge pull request #543 from BDonnot/bd_dev
BDonnot Oct 24, 2023
8e6fe9b
should be ready for version 1.9.6 now
BDonnot Oct 26, 2023
d60b257
fixing broken tests: pandapower Exception was catched - legacy behaviour
BDonnot Oct 26, 2023
bbcf404
fixing broken tests: pandapower Exception was catched - legacy behaviour
BDonnot Oct 26, 2023
123102f
Merge pull request #544 from BDonnot/bd_dev
BDonnot Oct 26, 2023
5619bee
fixing small issues spotted in the PR rte-france#547
BDonnot Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ executors:
python311:
docker:
- image: python:3.11-buster
python312:
docker:
- image: cimg/python:3.12.0

jobs:
test:
Expand Down Expand Up @@ -231,6 +234,14 @@ jobs:
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall
- run:
command: |
source venv_test/bin/activate
python -m pip install -U "numpy>=1.26,<1.27"
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall

install310:
executor: python310
resource_class: small
Expand Down Expand Up @@ -282,6 +293,14 @@ jobs:
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall
- run:
command: |
source venv_test/bin/activate
python -m pip install -U "numpy>=1.26,<1.27"
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall

install311:
executor: python311
resource_class: small
Expand Down Expand Up @@ -319,6 +338,36 @@ jobs:
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall
- run:
command: |
source venv_test/bin/activate
python -m pip install -U "numpy>=1.26,<1.27"
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall
install312:
executor: python312
resource_class: small
steps:
- checkout
- run:
command: |
sudo apt-get update
sudo apt-get install -y coinor-cbc
- run: python -m pip install virtualenv
- run: python -m virtualenv venv_test
- run:
command: |
source venv_test/bin/activate
python -m pip install -U pip setuptools wheel
# python -m pip install -U numba # not on python 3.12 at the moment
- run:
command: |
source venv_test/bin/activate
python -m pip install -U "numpy>=1.26,<1.27"
python -m pip install -U .[test]
export _GRID2OP_FORCE_TEST=1
grid2op.testinstall

workflows:
version: 2.1
Expand All @@ -331,3 +380,4 @@ workflows:
- install39
- install310
- install311
# - install312 # failing because of dependencies of numba, torch etc. Tired of it so ignoring it !
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
abi: cp311,
version: '3.11',
}
- {
name: cp312,
abi: cp312,
version: '3.12',
}

steps:

Expand All @@ -50,6 +55,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools

- name: Build wheel
run: |
Expand Down Expand Up @@ -102,6 +108,10 @@ jobs:
name: cp311,
version: '3.11',
}
- {
name: cp312,
version: '3.12',
}

steps:

Expand All @@ -119,6 +129,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools

- name: Build wheel
run: python setup.py bdist_wheel
Expand All @@ -134,7 +145,7 @@ jobs:
python3 -c "from grid2op.Action._backendAction import _BackendAction"

- name: Build source archive
if: matrix.config.name == 'darwin' && matrix.python.name == 'cp39'
if: matrix.config.name == 'darwin' && matrix.python.name == 'cp310'
run: python setup.py sdist

- name: Upload wheel
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ actspace_converter.py
grid2op/data_test/input_data_local/
test_sim2real_battery.py
grid2op/tests/list_test_debug
aux_test_make_backend_test_suite.py
grid2op/tests/test_failing_simulator.txt
old_pyproject.toml
pp_bug_gen_alone.py
test_dunder.py

# profiling files
**.prof
36 changes: 36 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,42 @@ Change Log
- [???] "asynch" multienv
- [???] properly model interconnecting powerlines

[1.9.6] - 2023-10-26
----------------------
- [BREAKING] when a storage is connected alone on a bus, even if it produces / absorbs 0.0 MW it
will raise a diverging powerflow error (previously the storage was automatically disconnected by
`PandaPowerBackend`, but probably not by other backends)
- [BREAKING] when a shunt is alone on a bus, the powerflow will diverge even in DC mode
(previously it only converges which was wrong behaviour: grid2op should not disconnect shunt)
- [FIXED] a bug in PandaPowerBackend (DC mode) where isolated load did not raised
exception (they should lead to a divergence)
- [FIXED] some wrong behaviour in the `remove_line_status_from_topo` when no observation where provided
and `check_cooldown` is `False`
- [FIXED] a bug in PandaPowerBackend in AC powerflow: disconnected storage unit had no 0. as voltage
- [FIXED] a bug in PandaPowerBackend in AC powerflow when a generator was alone a bus it made the powerflow
crash on some cases (*eg* without lightsim2grid, without numba)
- [FIXED] a bug in PandaPowerBackend in DC (in some cases non connected grid were not spotted)
- [FIXED] now the observations once reloaded have the correct `_is_done` flag (`obs._is_done = False`)
which allows to use the `obs.get_energy_graph()` for example. This fixes https://github.com/rte-france/Grid2Op/issues/538
- [ADDED] now depends on the `typing_extensions` package
- [ADDED] a complete test suite to help people develop new backend using "Test Driven Programming"
techniques
- [ADDED] the information on which time series data has been used by the environment in the `info`return value
of `env.step(...)`
- [ADDED] a test suite easy to set up to test the backend API (and only the backend for now, integration tests with
runner and environment will follow)
- [ADDED] an attribute of the backend to specify which file extension can be processed by it. Environment creation will
fail if none are found. See `backend.supported_grid_format` see https://github.com/rte-france/Grid2Op/issues/429
- [IMPROVED] now easier than ever to run the grid2op test suite with a new backend (for relevant tests)
- [IMPROVED] type hints for `Backend` and `PandapowerBackend`
- [IMPROVED] distribute python 3.12 wheel
- [IMPROVED] test for python 3.12 and numpy 1.26 when appropriate (*eg* when numpy version is released)
- [IMPROVED] handling of environments without shunts
- [IMPROVED] error messages when grid is not consistent
- [IMPROVED] add the default `l2rpn_case14_sandbox` environment in all part of the docs (substituing `rte_case14_realistic` or nothing)
- [IMPROVED] imports on the `Exceptions` module
- [IMPROVED] pandapower backend raises `BackendError` when "diverging"

[1.9.5] - 2023-09-18
---------------------
- [FIXED] issue https://github.com/rte-france/Grid2Op/issues/518
Expand Down
Loading
Loading