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/Rules/PreventDiscoStorageModif.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,006
41.702128
115
py
Grid2Op
Grid2Op-master/grid2op/Rules/PreventReconnection.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,855
46.6
119
py
Grid2Op
Grid2Op-master/grid2op/Rules/RulesChecker.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,323
38.105882
113
py
Grid2Op
Grid2Op-master/grid2op/Rules/__init__.py
__all__ = [ "RulesChecker", "DefaultRules", "AlwaysLegal", "BaseRules", "LookParam", "PreventReconnection", "PreventDiscoStorageModif", "RulesByArea", ] from grid2op.Rules.RulesChecker import RulesChecker from grid2op.Rules.DefaultRules import DefaultRules from grid2op.Rules.AlwaysLegal...
1,704
32.431373
79
py
Grid2Op
Grid2Op-master/grid2op/Rules/rulesByArea.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...
5,563
46.965517
201
py
Grid2Op
Grid2Op-master/grid2op/Runner/FakePBar.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...
813
27.068966
112
py
Grid2Op
Grid2Op-master/grid2op/Runner/__init__.py
__all__ = ["Runner"] from grid2op.Runner.runner import Runner
63
15
40
py
Grid2Op
Grid2Op-master/grid2op/Runner/aux_fun.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,025
34.370588
113
py
Grid2Op
Grid2Op-master/grid2op/Runner/basic_logger.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...
2,278
28.217949
112
py
Grid2Op
Grid2Op-master/grid2op/Runner/runner.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...
54,407
41.874704
119
py
Grid2Op
Grid2Op-master/grid2op/Space/GridObjects.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...
179,077
40.347957
137
py
Grid2Op
Grid2Op-master/grid2op/Space/RandomObject.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,503
38.035461
120
py
Grid2Op
Grid2Op-master/grid2op/Space/SerializableSpace.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...
18,212
39.11674
132
py
Grid2Op
Grid2Op-master/grid2op/Space/__init__.py
__all__ = ["RandomObject", "SerializableSpace", "GridObjects"] from grid2op.Space.RandomObject import RandomObject from grid2op.Space.SerializableSpace import SerializableSpace from grid2op.Space.GridObjects import GridObjects
228
37.166667
62
py
Grid2Op
Grid2Op-master/grid2op/Space/space_utils.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,528
31.844156
113
py
Grid2Op
Grid2Op-master/grid2op/VoltageControler/BaseVoltageController.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,999
34.971223
116
py
Grid2Op
Grid2Op-master/grid2op/VoltageControler/ControlVoltageFromFile.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,441
37.674157
116
py
Grid2Op
Grid2Op-master/grid2op/VoltageControler/__init__.py
__all__ = ["BaseVoltageController", "ControlVoltageFromFile"] from grid2op.VoltageControler.BaseVoltageController import BaseVoltageController from grid2op.VoltageControler.ControlVoltageFromFile import ControlVoltageFromFile
227
44.6
82
py
Grid2Op
Grid2Op-master/grid2op/data/blank/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import AlwaysLegal from grid2op.Chronics import ChangeNothing from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "action_class": TopologyAction, "observation_class": None,...
558
28.421053
45
py
Grid2Op
Grid2Op-master/grid2op/data/educ_case14_redisp/config.py
from grid2op.Action import PowerlineChangeAndDispatchAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPow...
983
23
59
py
Grid2Op
Grid2Op-master/grid2op/data/educ_case14_storage/config.py
from grid2op.Action import PowerlineChangeDispatchAndStorageAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": P...
997
23.341463
66
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_2019/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import ReadPypowNetData from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "action_class": T...
1,938
29.777778
45
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_case14_sandbox/config.py
from grid2op.Action import PlayableAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "a...
949
22.170732
59
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_case14_sandbox_diff_grid/change_grid_params.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...
1,208
36.78125
120
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py
from grid2op.Action import PlayableAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "a...
948
22.146341
59
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_icaps_2021/config.py
from grid2op.Action import PowerlineSetAction from grid2op.Reward import AlarmReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend from grid2op.Opponent import GeometricOpponent, B...
3,439
24.481481
114
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_idf_2023/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Observation import CompleteObservation from grid2op.Reward import RedispReward, AlertReward from grid2op.Rules import RulesByArea from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance...
5,434
46.675439
139
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_idf_2023/chronics/keep_only_beginning.py
import pandas as pd import numpy as np import grid2op import os for chron_nm in ["2035-01-15_0", "2035-08-20_0"]: for fn in ["load_p", "load_q", "prod_p"]: df_ = pd.read_csv(os.path.join(".", chron_nm, f"{fn}.csv.bz2"), sep=";") df_ = df_.iloc[:(288*2)] df_.to_csv(os.path.join(".", chron_nm...
631
41.133333
110
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_neurips_2020_track1/config.py
from grid2op.Action import PowerlineSetAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend from grid2op.Opponent import WeightedRandomOppon...
3,225
25.016129
114
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_neurips_2020_track2/x1/config.py
from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend try: from grid2op.l2rpn_utils import ActionNeurips2020, ObservationNeurips2020 except Imp...
3,872
16.847926
114
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_neurips_2020_track2/x2.5/config.py
from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend try: from grid2op.l2rpn_utils import ActionNeurips2020, ObservationNeurips2020 except Imp...
3,872
16.847926
114
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_wcci_2020/config.py
from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend try: from grid2op.l2rpn_utils import ActionWCCI2020, ObservationWCCI2020 ...
1,976
20.725275
114
py
Grid2Op
Grid2Op-master/grid2op/data/l2rpn_wcci_2022_dev/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Observation import CompleteObservation from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2o...
4,859
48.090909
114
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case118_example/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder, ChangeNothing from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend":...
681
33.1
59
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case14_opponent/config.py
from grid2op.Action import TopologyAndDispatchAction, PowerlineSetAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend from grid2op.Opponent...
1,613
26.355932
72
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case14_realistic/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,035
24.268293
59
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case14_redisp/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,129
26.560976
59
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case14_test/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,124
26.439024
59
py
Grid2Op
Grid2Op-master/grid2op/data/rte_case5_example/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "ac...
642
31.15
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_diff_name/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "ac...
642
31.15
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_forecasts/config.py
from grid2op.Action import PowerlineSetAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import (Multifolder, GridStateFromFileWithForecasts) # TODO change this ! from grid2op.Backend import PandaPowerBackend from grid2op.Opponent ...
1,547
38.692308
111
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_forecasts/chronics/0/modif.py
import pandas as pd import numpy as np for el in ["load_p", "load_q", "prod_p"]: dt = pd.read_csv(f"{el}.csv.bz2", sep=";") arr = np.ones((12, dt.shape[1])) add = np.vstack([np.cumsum(arr, 0) for _ in range(dt.shape[0])]) dt = dt.loc[dt.index.repeat(12)] dt += add dt.to_csv(f"{el}_forecast...
367
32.454545
76
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_forecasts/chronics/maintenance/add_maintenance.py
import pandas as pd import numpy as np line_name = ['0_1_0', '0_2_1', '0_3_2', '0_4_3', '1_2_4', '2_3_5', '2_3_6', '3_4_7'] line_maint_id = 5 indx_maint_start = 6 indx_maint_stop = 10 load = pd.read_csv("load_p.csv.bz2", sep=";") n_row = load.shape[0] maintenance = np.zeros((n_row, len(line_name))) main...
505
28.764706
75
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_some_missing/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "ac...
642
31.15
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_th_lim_dict/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import ChangeNothing from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "action_class": TopologyAction, "observation_class": None...
726
25.925926
45
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_example_with_params/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "ac...
642
31.15
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_modif_grid/config.py
from grid2op.Action import TopologyAction from grid2op.Reward import L2RPNReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "ac...
642
31.15
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/5bus_modif_grid/readme.md
# see issue https://github.com/rte-france/Grid2Op/issues/217
61
30
60
md
Grid2Op
Grid2Op-master/grid2op/data_test/env_14_test_maintenance/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,035
24.268293
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/ieee118/create_ieee118_zones.py
import matplotlib.pyplot as plt import pandas as pd import pandapower as pp import pandapower.networks as nw import pandapower.plotting as pplt def get_net_118_with_zones(): net = nw.case118() pp.runpp(net) net.bus.sort_index(inplace=True) net.bus.loc[:32, "zone"] = 1 net.bus.loc[32:67, "zone"] ...
3,908
25.773973
82
py
Grid2Op
Grid2Op-master/grid2op/data_test/ieee118/ieee_118_analysis.py
import pandapower as pp import pandapower.topology as top import pandapower.networks as nw import pandapower.plotting as pplt import matplotlib.pyplot as plt from matplotlib.lines import Line2D import seaborn as sns palette = "muted" n_colors = 8 # three different subgrids def custom_legend(fig, entries, fontsize=...
3,124
27.669725
88
py
Grid2Op
Grid2Op-master/grid2op/data_test/ieee118_R2subgrid_wcci_test_maintenance/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend config = { "backend":...
1,580
18.7625
74
py
Grid2Op
Grid2Op-master/grid2op/data_test/ieee118_R2subgrid_wcci_test_maintenance_2/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend config = { "backend":...
1,580
18.7625
74
py
Grid2Op
Grid2Op-master/grid2op/data_test/ieee118_R2subgrid_wcci_test_maintenance_3/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend config = { "backend":...
1,580
18.7625
74
py
Grid2Op
Grid2Op-master/grid2op/data_test/l2rpn_case14_sandbox_qp_cste/config.py
from grid2op.Action import PlayableAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBackend, "a...
949
22.170732
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/l2rpn_icaps_2021_small_test/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Reward import AlarmReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend from grid2op.Oppon...
3,036
23.893443
111
py
Grid2Op
Grid2Op-master/grid2op/data_test/l2rpn_idf_2023_with_alert/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Reward import AlertReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecastsWithMaintenance from grid2op.Backend import PandaPowerBackend from grid2op.Oppon...
3,213
24.307087
114
py
Grid2Op
Grid2Op-master/grid2op/data_test/l2rpn_neurips_2020_track1_with_alarm/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Reward import AlarmReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend from grid2op.Opponent import Weig...
3,069
24.583333
111
py
Grid2Op
Grid2Op-master/grid2op/data_test/multimix/case14_001/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,129
26.560976
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/multimix/case14_002/config.py
from grid2op.Action import TopologyAndDispatchAction from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend config = { "backend": PandaPowerBack...
1,035
24.268293
59
py
Grid2Op
Grid2Op-master/grid2op/data_test/test_issue_367/config.py
from grid2op.Action import PlayableAction, PowerlineSetAction from grid2op.Observation import CompleteObservation from grid2op.Reward import RedispReward from grid2op.Rules import DefaultRules from grid2op.Chronics import Multifolder from grid2op.Chronics import GridStateFromFile from grid2op.Backend import PandaPowerB...
4,803
47.525253
114
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/__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...
5,349
38.62963
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/base_gym_attr_converter.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,163
37.251852
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/box_gym_actspace.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...
28,842
40.145506
121
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/box_gym_obsspace.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,331
40.069307
125
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/continuous_to_discrete.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,739
43.739884
118
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/discrete_gym_actspace.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,038
44.316489
115
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/gym_act_space.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,758
42.104369
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/gym_obs_space.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...
21,084
43.389474
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/gym_space_converter.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,155
37.347003
115
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/gymenv.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,788
40.804965
118
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/multi_to_tuple_converter.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,166
44.121547
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/multidiscrete_gym_actspace.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...
26,421
45.930728
128
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/scaler_attr_converter.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,122
41.338843
112
py
Grid2Op
Grid2Op-master/grid2op/gym_compat/utils.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,259
26.863248
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/__init__.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...
1,110
51.904762
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/icaps_2021.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,244
31.777778
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/idf_2023.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,920
27.359223
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/neurips_2020.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...
2,761
31.116279
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/wcci_2020.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...
2,331
24.626374
112
py
Grid2Op
Grid2Op-master/grid2op/l2rpn_utils/wcci_2022.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,587
27.130435
112
py
Grid2Op
Grid2Op-master/grid2op/operator_attention/__init__.py
# Copyright (c) 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-Lice...
573
46.833333
112
py
Grid2Op
Grid2Op-master/grid2op/operator_attention/attention_budget.py
# Copyright (c) 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-Lice...
12,333
34.039773
112
py
Grid2Op
Grid2Op-master/grid2op/rest_server/__init__.py
0
0
0
py
Grid2Op
Grid2Op-master/grid2op/rest_server/app.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...
18,252
29.523411
118
py
Grid2Op
Grid2Op-master/grid2op/rest_server/env_cache.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,776
32.368601
117
py
Grid2Op
Grid2Op-master/grid2op/rest_server/multi_env_server.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,518
32.448485
112
py
Grid2Op
Grid2Op-master/grid2op/rest_server/test_server.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...
13,453
38.339181
118
py
Grid2Op
Grid2Op-master/grid2op/simulator/__init__.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...
538
43.916667
112
py
Grid2Op
Grid2Op-master/grid2op/simulator/simulator.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...
24,214
37.558917
131
py
Grid2Op
Grid2Op-master/grid2op/tests/BaseBackendTest.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...
123,207
37.635309
142
py
Grid2Op
Grid2Op-master/grid2op/tests/BaseRedispTest.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...
38,221
42.732265
114
py
Grid2Op
Grid2Op-master/grid2op/tests/__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...
529
52
112
py
Grid2Op
Grid2Op-master/grid2op/tests/_aux_test_gym_compat.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...
81,288
40.221602
126
py
Grid2Op
Grid2Op-master/grid2op/tests/_aux_test_some_gym_issues.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...
1,882
41.795455
112
py
Grid2Op
Grid2Op-master/grid2op/tests/generate_coverage.sh
#/bin/bash coverage run --source=.. -m unittest discover coverage report -m coverage html
91
14.333333
45
sh
Grid2Op
Grid2Op-master/grid2op/tests/helper_data_test.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,633
22.294872
112
py
Grid2Op
Grid2Op-master/grid2op/tests/helper_gen_iadd.py
#!/usr/bin/env python3 import itertools header_content = """ import unittest import warnings from abc import ABC, abstractmethod import numpy as np import grid2op from grid2op.Action import * from grid2op.dtypes import dt_float """ print(header_content) base_content = """ class Test_iadd_Base(ABC): @abstractme...
6,171
27.182648
84
py
Grid2Op
Grid2Op-master/grid2op/tests/helper_list_test.py
#!/usr/bin/env python3 import sys import unittest def print_suite(suite): if hasattr(suite, "__iter__"): for x in suite: print_suite(x) else: testmodule = suite.__class__.__module__ testsuite = suite.__class__.__name__ testmethod = suite._testMethodName test...
462
23.368421
72
py
Grid2Op
Grid2Op-master/grid2op/tests/helper_path_test.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,917
35.884615
112
py