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
Additionally, there are some minor issues with the notebook:
from _helpers import sets_path_to_root is no longer available (and not needed) and raises an error
.groupby(n.generators.carrier, axis=1) raises: FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do frame.T.groupby(...) without axis instead.. This can be fixed with: .T.groupby(n.storage_units.carrier). in combination with .loc[...]
n.statistics._parent raises an AttributeError for newer versions of pypsa (just printing n returns the same information)
(By the way: why is the pypsa version fixed to 0.24 in the environment.yaml for pypsa-earth, is there a specific reason?)
Maybe it would also be nice to add a link to the tutorial video mentioned above :)
Please let me know if I should open a PR.
The text was updated successfully, but these errors were encountered:
Hello @mt7180, thank you so much for sharing your work! Looks like a very nice improvement of the documentation 😄
I confirm that the sample_network_analysis notebook got a bit outdated. Also, it has been created for a particular case where hydro didn't play a significant role, while having a more general approach would be highly appreciated!
Also, that it absolutely makes sense to add a link to the youtube tutorial.
We would love to have the implementation you suggest! The PR on that would be very warmly welcome 🙏🏽
(By the way: why is the pypsa version fixed to 0.24 in the environment.yaml for pypsa-earth, is there a specific reason?)
Ahh, regarding the PyPSA version, 0.25 restriction has been needed to avoid introducing breaking changes into the model. We have a PR which introduced the changes needed to run the latest version of PyPSA, but we aim first to release a stable version of the model with cross-sectoral capabilities. Actually, that is a great moment to communicate is more actively 😄 Thank for raising the question in the Support channel in Discord!
As also mentioned in the Youtube Tutorial #1, the stacked plot for hourly dispatch in the sample_network_analysis notebook has greater demand than generation. That's because:
When doing so, generation and demand areas are balanced (see the black withdrawal line)
The following updated code gives the diagram below (and additionally omits dealing with the color_map manually) :
Additionally, there are some minor issues with the notebook:
from _helpers import sets_path_to_root
is no longer available (and not needed) and raises an error.groupby(n.generators.carrier, axis=1)
raises:FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do frame.T.groupby(...) without axis instead.
. This can be fixed with:.T.groupby(n.storage_units.carrier).
in combination with .loc[...]n.statistics._parent
raises an AttributeError for newer versions of pypsa (just printing n returns the same information)(By the way: why is the pypsa version fixed to 0.24 in the environment.yaml for pypsa-earth, is there a specific reason?)
Maybe it would also be nice to add a link to the tutorial video mentioned above :)
Please let me know if I should open a PR.
The text was updated successfully, but these errors were encountered: