PyPSA / pypsa-usa

PyPSA-USA: An Open-Source Energy System Optimization Model for the United States
https://pypsa-usa.readthedocs.io
MIT License
35 stars 15 forks source link

Error in Emission Calculation Functions #239

Closed trevorb1 closed 3 months ago

trevorb1 commented 3 months ago

Checklist

The Issue

We have 2 different emission accounting functions; one in the plot statistics module and one in the summary module. These functions currently give different results. If I had to guess, I would say the one is summary is probably off cause its taking into account links as well.

Im comparing the emission accounting in plot_regional_emissions_bar to the the emission accounting in get_node_emissions_timeseries

From plot_regional_emissions_bar

image

image

From get_node_emissions_timeseries

image

Steps To Reproduce

No response

Expected Behavior

No response

Error Message

No response

Anything else?

No response