Grid2op / chronix2grid

https://chronix2grid.readthedocs.io/en/latest/?
Mozilla Public License 2.0
19 stars 5 forks source link

Merging development for wcci 2022 competition #50

Closed BDonnot closed 2 years ago

BDonnot commented 2 years ago

Lots of changing in the core of chronix2grid

BDonnot commented 2 years ago

This addresses but without tests the issues:

BDonnot commented 2 years ago

Some unittests are broken:

FAILED tests/unit_tests/test_EconomicDispatch.py::TestDispatch::test_from_grid2op_env - grid2op.Exceptions.BackendExceptions.BackendEr...
FAILED tests/unit_tests/test_EconomicDispatch.py::TestDispatch::test_read_hydro_guide_curves - grid2op.Exceptions.BackendExceptions.Ba...
FAILED tests/unit_tests/test_EconomicDispatch.py::TestChronixScenario::test_net_load - AssertionError: 28.5 != 21.5
FAILED tests/unit_tests/test_grid2op_import.py::TestGrid2OpImport::test_grid2op_runner - grid2op.Exceptions.BackendExceptions.BackendE...
FAILED tests/unit_tests/test_load_coherence.py::TestLoadProdCoherence::test_load_coherence_year - AttributeError: module 'chronix2grid...
FAILED tests/unit_tests/test_main.py::TestMain::test_lrdk - AttributeError: 'float' object has no attribute 'shape'
FAILED tests/unit_tests/test_main.py::TestMain::test_lrdtk - AttributeError: 'float' object has no attribute 'shape'
FAILED tests/unit_tests/test_main.py::TestMain::test_lrk - AttributeError: 'float' object has no attribute 'shape'
FAILED tests/unit_tests/test_main.py::TestMain::test_lrtk - AttributeError: 'float' object has no attribute 'shape'

(9 failed, 21 passed, 13 warnings in 332.83s (0:05:32))

BDonnot commented 2 years ago

Some KPI tests are broken, probably due to other pandas / numpy version, see below:

FAILED tests/unit_tests/test_main.py::TestMain::test_lrdtk - ValueError: x must be 1D
FAILED tests/unit_tests/test_main.py::TestMain::test_lrtk - ValueError: x must be 1D

I will not fix them.

BDonnot commented 2 years ago

For the integration tests:

FAILED tests/integration_tests/test_integration.py::TestIntegration::test_integration_all - AssertionError: False is not true
FAILED tests/integration_tests/test_integration.py::TestIntegration::test_integration_lrt_nolosscorrection - AssertionError: False is not true
FAILED tests/integration_tests/test_integration.py::TestIntegration::test_integration_lrt_withlosscorrection - AssertionError: False is not true