Closed birgits closed 10 months ago
I get another error in Etrago.plot_grid:
IndexError Traceback (most recent call last)
Cell In[22], line 1
----> 1 etrago.plot_grid(line_colors= "expansion_abs", bus_colors= "storage_expansion", bus_sizes= 0.000001)
File ~/virtualenvs/hyBit_p_310/git_repos/eTraGo/etrago/tools/[plot.py:2496](http://plot.py:2496/), in plot_grid(self, line_colors, bus_sizes, bus_colors, timesteps, osm, boundaries, filename, disaggregated, ext_min, ext_width)
2492 v = np.linspace(boundaries[0], boundaries[1], 101)
2494 # colorbar for line heatmap
2495 cb = plt.colorbar(
-> 2496 ll[1], boundaries=v, ticks=v[0:101:10], fraction=0.046, pad=0.04
2497 )
2498 # Set legend label
2499 cb.set_label(label)
IndexError: tuple index out of range
I couldn't reproduce both of your issues, I can run and plot calculations with load shedding. Which pandas version do you use? I use 1.5.3.
I also use 1.5.3.. Weird.
I just ran eTraGo without any error message using the default settings using Python 3.8 and 3.10. Could you install the dev branch of eTraGo in a fresh virtual environment and try again?
When I run the spatial_clustering with python 3.10 and load_shedding set to True, I get the following error:
With load_shedding set to False, the spatial_clustering runs through.