Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Storage Units Plotting Error #473

Open
MoritzSchloesser opened this issue Feb 25, 2025 · 0 comments
Open

[BUG] Storage Units Plotting Error #473

MoritzSchloesser opened this issue Feb 25, 2025 · 0 comments
Labels

Comments

@MoritzSchloesser
Copy link
Collaborator

Bug Report: Storage Units Plotting Error in plots.mv_grid_topology()

Describe the bug
The function plots.mv_grid_topology() currently creates a geoplot only for the MV grid. To achieve this, a PyPSANetwork for the MV part is created in plots.py at line 557.

However, in lines 754 to 759, the function attempts to plot storage units. The issue arises because the function tries to plot storage units from both the MV and LV grids, even though only the MV grid PyPSANetwork is available. Since all storage unit indices (including LV storage units) are passed to the MV PyPSANetwork, an error occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Call plots.mv_grid_topology() on a grid that contains storage units in both the MV and LV grids.
  2. Observe that the function attempts to plot all storage units, including those in the LV grid.
  3. Since the MV PyPSANetwork does not contain LV storage units, an error occurs.

Expected behavior
The function should only pass MV storage units to the plot function to avoid errors. Filtering the storage units before passing them to the plot function should resolve this issue.

Screenshots
(If applicable, add screenshots to help illustrate the issue.)

Additional context
Adding a filter to ensure only MV storage units are included in the plotting function will prevent this error and ensure correct visualization.

@MoritzSchloesser MoritzSchloesser changed the title [BUG] [BUG] Storage Units Plotting Error Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant