You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to draw a plotly html figure using the function draw_plotly() a KeyError is thrown. Used the function on ding0_test_network_2 and ding0_test_network_4.
---------------------------------------------------------------------------
KeyError: 'Branch_LVStation_mvgd_2095_lvgd_170173_MVStation_mvgd_2095' Traceback (most recent call last):
File ~/.config/JetBrains/PyCharmCE2022.1/scratches/scratch.py", line 21, in <module>
draw_plotly(edisgo)
File ~/Documents/PythonProjects/eDisGo_orig/eDisGo/edisgo/tools/plots.py", line 1057, in draw_plotly
loading = edisgo_obj.results.s_res.T.loc[edge[2]["branch_name"]].max()
File ~/Documents/PythonProjects/eDisGo_orig/d_py38_edisgo/lib/python3.8/site-packages/pandas/core/indexing.py", line 967, in __getitem__
return self._getitem_axis(maybe_callable, axis=axis)
File ~/Documents/PythonProjects/eDisGo_orig/d_py38_edisgo/lib/python3.8/site-packages/pandas/core/indexing.py", line 1202, in _getitem_axis
return self._get_label(key, axis=axis)
File ~/Documents/PythonProjects/eDisGo_orig/d_py38_edisgo/lib/python3.8/site-packages/pandas/core/indexing.py", line 1153, in _get_label
return self.obj.xs(label, axis=axis)
File ~/Documents/PythonProjects/eDisGo_orig/d_py38_edisgo/lib/python3.8/site-packages/pandas/core/generic.py", line 3864, in xs
loc = index.get_loc(key)
File ~/Documents/PythonProjects/eDisGo_orig/d_py38_edisgo/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3623, in get_loc
raise KeyError(key) from err
KeyError: 'Branch_LVStation_mvgd_2095_lvgd_170173_MVStation_mvgd_2095'
To Reproduce
Steps to reproduce the behavior:
Initialize eDisGo object based on ding0_test_network_4
Try to use draw_plotly() function on edisgo object: draw_plotly(edisgo)
Expected behavior
To draw a plotly html figure.
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to draw a plotly html figure using the function
draw_plotly()
a KeyError is thrown. Used the function on ding0_test_network_2 and ding0_test_network_4.To Reproduce
Steps to reproduce the behavior:
draw_plotly(edisgo)
Expected behavior
To draw a plotly html figure.
The text was updated successfully, but these errors were encountered: