PyPSA / pypsa-ariadne

High resolution, sector-coupled model of the German Energy System
https://ariadneprojekt.de/en/model-documentation-pypsa/
MIT License
12 stars 4 forks source link

Negative Hydrogen Demand in 2025 #119

Open toniseibold opened 3 months ago

toniseibold commented 3 months ago

Variables Final Energy|Hydrogen and Final Energy|Industry excl Non-Energy Use|Hydrogen are negative in 2025 with a value of -0.38 PJ/yr. To work around this issue when executing the rule plot_ariadne_variables add to the function side_by_side_plot()

# check if there is a negative value in df
    if df.min().min() < 0:
        logger.warning(f"Negative values in {title} plot")
        df[df < 0] = 0