Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
Grid2Op | Grid2Op-master/grid2op/Download/download.py | #!/usr/bin/env python
# Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozil... | 1,909 | 27.507463 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/BaseEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 176,434 | 42.001462 | 140 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/BaseMultiProcessEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 32,201 | 37.657863 | 139 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/Environment.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 77,149 | 40.322978 | 143 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/MultiEnvMultiProcess.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 5,561 | 37.895105 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/MultiMixEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 17,113 | 34.286598 | 139 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/SingleEnvMultiProcess.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,583 | 33.466165 | 114 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/_ObsEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 19,451 | 36.335893 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/__init__.py | __all__ = [
"BaseEnv",
"Environment",
"BaseMultiProcessEnvironment",
"SingleEnvMultiProcess",
"MultiEnvMultiProcess",
"MultiMixEnvironment",
"TimedOutEnvironment"
]
from grid2op.Environment.BaseEnv import BaseEnv
from grid2op.Environment.Environment import Environment
from grid2op.Environme... | 656 | 35.5 | 79 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/_forecast_env.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,180 | 41.178571 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Environment/timedOutEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 12,323 | 44.476015 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Episode/EpisodeData.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 35,729 | 36.102804 | 141 | py |
Grid2Op | Grid2Op-master/grid2op/Episode/EpisodeReboot.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 11,770 | 34.561934 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Episode/EpisodeReplay.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 8,466 | 34.57563 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Episode/__init__.py | __all__ = ["EpisodeData"]
from grid2op.Episode.EpisodeData import EpisodeData
# Try to import optional module
try:
from grid2op.Episode.EpisodeReplay import EpisodeReplay
__all__.append("EpisodeReplay")
except ImportError:
pass # Silent fail for optional dependencies
| 284 | 22.75 | 59 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/AmbiguousActionExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,965 | 28.915663 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/AttentionBudgetExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 734 | 37.684211 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/BackendExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 686 | 35.157895 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/ChronicsExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,088 | 29.25 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/EnvExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,499 | 25.923077 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/Grid2OpException.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,609 | 36.44186 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/IllegalActionExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,015 | 29.464646 | 117 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/ObservationExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,190 | 30.3 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/OpponentError.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 637 | 38.875 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/PlotExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 747 | 31.521739 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/PowerflowExceptions.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,215 | 42.428571 | 113 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/RunnerError.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,083 | 44.166667 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/__init__.py | __all__ = [
"Grid2OpException",
"EnvError",
"IncorrectNumberOfLoads",
"IncorrectNumberOfGenerators",
"IncorrectNumberOfLines",
"IncorrectNumberOfSubstation",
"IncorrectNumberOfStorages",
"IncorrectNumberOfElements",
"IncorrectPositionOfLoads",
"IncorrectPositionOfGenerators",
... | 5,554 | 41.40458 | 83 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/agentError.py | from grid2op.Exceptions.Grid2OpException import Grid2OpException
# Exception Runner is used twice, not possible on windows / macos due to the way multiprocessing works
class AgentError(Grid2OpException):
"""
This exception indicate that there is an error in the creation of an agent
"""
pass
| 311 | 27.363636 | 102 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/handlers_exceptions.py | # Copyright (c) 2019-2023, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 662 | 43.2 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Exceptions/simulatorExceptions.py | # Copyright (c) 2019-2022, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 757 | 36.9 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/Make.py | # Copyright (c) 2019-2021, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 17,361 | 35.706131 | 131 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/MakeFromPath.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 36,932 | 40.358343 | 133 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/MakeOld.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 23,708 | 37.55122 | 139 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/PathUtils.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,486 | 40.305556 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/UpdateEnv.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 8,627 | 38.39726 | 258 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/UserUtils.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 6,347 | 29.085308 | 117 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/__init__.py | __all__ = [
"make",
"make_from_dataset_path",
"list_available_remote_env",
"list_available_local_env",
"get_current_local_dir",
"change_local_dir",
"list_available_test_env",
"update_env",
# deprecated in v 0.8.0
"make_old",
]
from grid2op.MakeEnv.MakeOld import make_old
from gr... | 674 | 27.125 | 79 | py |
Grid2Op | Grid2Op-master/grid2op/MakeEnv/get_default_aux.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 7,884 | 39.435897 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/__init__.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 862 | 40.095238 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/baseObservation.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 191,403 | 41.915695 | 188 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/completeObservation.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 11,177 | 50.75 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/highresSimCounter.py | # Copyright (c) 2023, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-Lice... | 943 | 33.962963 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/noisyObservation.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 6,100 | 34.888235 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/observationSpace.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 22,838 | 41.138376 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Observation/serializableObservationSpace.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,364 | 36.808989 | 113 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/BaseActionBudget.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,012 | 33.118644 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/BaseOpponent.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,697 | 34.059701 | 115 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/GeometricOpponent.py | # Copyright (c) 2019-2021, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 15,241 | 42.056497 | 119 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/NeverAttackBudget.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 942 | 35.269231 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/OpponentSpace.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 9,752 | 38.326613 | 129 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/RandomLineOpponent.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 5,166 | 36.172662 | 114 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/UnlimitedBudget.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 943 | 35.307692 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/WeightedRandomOpponent.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 7,974 | 39.277778 | 115 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/__init__.py | __all__ = [
"OpponentSpace",
"BaseActionBudget",
"BaseOpponent",
"UnlimitedBudget",
"RandomLineOpponent",
"WeightedRandomOpponent",
"NeverAttackBudget",
"GeometricOpponent",
"GeometricOpponentMultiArea"
]
from grid2op.Opponent.OpponentSpace import OpponentSpace
from grid2op.Opponent... | 833 | 36.909091 | 82 | py |
Grid2Op | Grid2Op-master/grid2op/Opponent/geometricOpponentMultiArea.py | #Copyright (c) 2019-2021, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-... | 8,850 | 41.966019 | 136 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/BasePlot.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 37,103 | 35.519685 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/EpisodeReplay.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 6,746 | 35.080214 | 119 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/PlotMatplotlib.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 10,122 | 32.856187 | 114 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/PlotPlotly.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 15,071 | 29.325956 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/PlotPyGame.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 23,098 | 32.04578 | 126 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/Plotting.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,687 | 27.369231 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Plot/__init__.py | __all__ = [
"BasePlot",
"PlotMatplotlib",
"PlotPlotly",
"PlotPyGame",
"Plotting",
"EpisodeReplay",
]
from grid2op.Plot.BasePlot import BasePlot
from grid2op.Plot.PlotMatplotlib import PlotMatplotlib
from grid2op.Plot.PlotPlotly import PlotPlotly
from grid2op.Plot.PlotPyGame import PlotPyGame
fr... | 750 | 25.821429 | 66 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/BasePlot.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 33,775 | 30.566355 | 116 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/LayoutUtil.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 6,465 | 32.853403 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/PlotMatplot.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 39,665 | 32.873612 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/PlotPlotly.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 22,193 | 32.424699 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/PlotUtil.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,003 | 29.363636 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/__init__.py | __all__ = [
"NUKE_COLOR",
"THERMAL_COLOR",
"WIND_COLOR",
"SOLAR_COLOR",
"HYDRO_COLOR",
"NUKE_ID",
"THERMAL_ID",
"WIND_ID",
"SOLAR_ID",
"HYDRO_ID",
"TYPE_GEN",
"COLOR_GEN",
"BasePlot",
]
from grid2op.PlotGrid.config import *
from grid2op.PlotGrid.BasePlot import BaseP... | 698 | 20.181818 | 56 | py |
Grid2Op | Grid2Op-master/grid2op/PlotGrid/config.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 932 | 27.272727 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/__init__.py | __all__ = [
"ConstantReward",
"EconomicReward",
"FlatReward",
"IncreasingFlatReward",
"L2RPNReward",
"RedispReward",
"BridgeReward",
"CloseToOverflowReward",
"DistanceReward",
"GameplayReward",
"LinesReconnectedReward",
"LinesCapacityReward",
"CombinedReward",
"Co... | 2,610 | 36.84058 | 101 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/_alarmScore.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 7,115 | 41.86747 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/_assistantScore.py | # Copyright (c) 2023, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-Lice... | 2,421 | 36.261538 | 117 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/_newRenewableSourcesUsageScore.py | # Copyright (c) 2023, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-Lice... | 3,877 | 41.615385 | 140 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/alarmReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 7,328 | 39.04918 | 114 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/alertReward.py | # Copyright (c) 2019-2023, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 9,721 | 47.128713 | 160 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/baseReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 10,409 | 38.581749 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/bridgeReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,574 | 34.04902 | 117 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/closeToOverflowReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,612 | 36.869565 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/combinedReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,715 | 34.390476 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/combinedScaledReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,990 | 35.925926 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/constantReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,593 | 34.422222 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/distanceReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,489 | 33.583333 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/economicReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,971 | 40.277778 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/episodeDurationReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,637 | 36.15493 | 115 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/flatReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,699 | 34.416667 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/gameplayReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,912 | 35.09434 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/increasingFlatReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,038 | 35.410714 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/l2RPNReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,967 | 37.545455 | 116 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/l2RPNSandBoxScore.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,531 | 37.40678 | 118 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/l2rpn_wcci2022_scorefun.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,962 | 43.613636 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/linesCapacityReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,287 | 34.2 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/linesReconnectedReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,420 | 34.086957 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/n1Reward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,850 | 36.754902 | 124 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/redispReward.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 9,454 | 43.599057 | 120 | py |
Grid2Op | Grid2Op-master/grid2op/Reward/rewardHelper.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 5,480 | 36.8 | 126 | py |
Grid2Op | Grid2Op-master/grid2op/Rules/AlwaysLegal.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 906 | 35.28 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Rules/BaseRules.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,759 | 39.588235 | 142 | py |
Grid2Op | Grid2Op-master/grid2op/Rules/DefaultRules.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,946 | 42.266667 | 112 | py |
Grid2Op | Grid2Op-master/grid2op/Rules/LookParam.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 2,825 | 44.580645 | 169 | py |