Skip to content

Commit

Permalink
Added pseudo coordinates (#278)
Browse files Browse the repository at this point in the history
* Added pseudo coordinates

* Added pseudo coordinates

* Update version for plotting packages

* Improve plotting and pseudo_coordinates

- add pseudo coordinates for one graph
- add pseudo corrdinates for dash_plot

* Improve plotting with plotly and dash
- added colorbar in draw_plotly by nailend
- added function show_dash_plot to show Jupyter dash app

* Fix bugs and add tests

- Raise error when no results are passed to plot results
- Add tests for pseudo coordinates and plotting

* Bug fix missing hover label nodes

* Bug fix missing MV_Grid in dash_plot

* Minor docstring changes and change of loggeing level

* Remove manual setting of equipment changes

* Change logging level

* Minor docstring changes

* Change input parameter checks to cover more cases and set to None instead of throwing an error

* Add plot_dash timestep slider

* Add docstring and comment make_coordinates function

* Fix setting with copy warning

* Improve tests for plots

* Improve plot_ploty, plot_dash and plot_example.ipynb

* Improve docs

for plot_ploty, plot_dash, plot_dash_app
fix plotly doc link

* Minor changes in notebook

* Minor doc changes

* Avoid unnecessary transposing

* Take selected time steps as time stamp or string

* Minor labeling changes

* Add resampling to whatsnew

* Use test network 1

Co-authored-by: birgits <birgit.schachler@rl-institut.de>
  • Loading branch information
mltja and birgits committed Sep 5, 2022
1 parent b81b392 commit 1a96538
Show file tree
Hide file tree
Showing 9 changed files with 1,572 additions and 403 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"shapely": ("https://shapely.readthedocs.io/en/latest/manual.html#%s", "shapely."),
"ding0": ("https://dingo.readthedocs.io/en/dev/api/ding0.html#%s", "Ding0"),
"pypsa": ("https://pypsa.readthedocs.io/en/latest/components.html#%s", "pypsa"),
"plotly": ("https://plotly.com/python-api-reference/generated/#%s.html", "plotly"),
"plotly": ("https://plotly.com/python-api-reference/generated/%s.html", "plotly"),
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
1 change: 1 addition & 0 deletions doc/whatsnew/v0-2-0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Changes
* added option to not raise error in case power flow did not converge `#207 <https://github.com/openego/eDisGo/issues/207>`_
* added pyplot `#214 <https://github.com/openego/eDisGo/pull/214>`_
* added functionality to create geopandas dataframes `#224 <https://github.com/openego/eDisGo/issues/224>`_
* added functionality to resample time series `#269 <https://github.com/openego/eDisGo/pull/269>`_
* added tests
* major refactoring of loads and time series

Expand Down
4 changes: 3 additions & 1 deletion edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,9 @@ def change_line_type(self, lines, new_line_type):
data_new_line = self.equipment_data["lv_cables"].loc[new_line_type]
except KeyError:
try:
data_new_line = self.equipment_data["mv_cables"].loc[new_line_type]
data_new_line = (
self.equipment_data["mv_cables"].loc[new_line_type].copy()
)
# in case of MV cable adapt nominal voltage to MV voltage
grid_voltage = self.buses_df.at[
self.lines_df.at[lines[0], "bus0"], "v_nom"
Expand Down

0 comments on commit 1a96538

Please sign in to comment.