Skip to content

Commit c0297e3

Browse files
committed
add docstring
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
1 parent 2694cea commit c0297e3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/power_grid_model_io/converters/pandapower_converter.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ def _create_input_data(self):
137137
self._create_pgm_input_dclines()
138138

139139
def _fill_pgm_extra_info(self, extra_info: ExtraInfo):
140+
"""
141+
Fills in extra information of power-grid-model input after conversion from pandapower to the extra_info dict
142+
143+
Args:
144+
extra_info: The extra info dict
145+
"""
140146
for (pp_table, name), indices in self.idx_lookup.items():
141147
for pgm_id, pp_idx in zip(indices.index, indices):
142148
if name:
@@ -156,6 +162,14 @@ def _fill_pgm_extra_info(self, extra_info: ExtraInfo):
156162
extra_info[pgm_id]["pgm_input"][attr_name] = node_id
157163

158164
def _fill_pp_extra_info(self, extra_info: ExtraInfo):
165+
"""
166+
Fills extra information from pandapower input dataframes not available in power-grid-model input
167+
to the extra_info dict.
168+
Currently, it is possible to only store the derating factor (df) of trafo.
169+
170+
Args:
171+
extra_info: The extra info dict
172+
"""
159173
pp_input = {"trafo": {"df"}}
160174
for pp_table, pp_attr in pp_input.items():
161175
if pp_table in self.pp_input_data:

0 commit comments

Comments
 (0)