openego / eTraGo

Optimization of flexibility options for transmission grids based on PyPSA
GNU Affero General Public License v3.0
30 stars 13 forks source link

Disaggregate links and stores #629

Closed gnn closed 1 year ago

gnn commented 1 year ago

I'm finally done with picking the commits from stashes/egon-disaggregation-tryouts. Please check if it still works as well as on the other branch, then we can move it into dev.

ClaraBuettner commented 1 year ago

The disaggregation is currently not running, because etrago.clustering.busmap is a dictionary now (it used to be a pandas.Series). This seems to be a change in pypsa, so it is not that easy to change it directly. It works when I update a few lines in the disaggregation function. Can I push that? Or do you have a better idea to solve this problem?

ClaraBuettner commented 1 year ago

The disaggregation is currently not running, because etrago.clustering.busmap is a dictionary now (it used to be a pandas.Series). This seems to be a change in pypsa, so it is not that easy to change it directly. It works when I update a few lines in the disaggregation function. Can I push that? Or do you have a better idea to solve this problem?

I pushed my solution in 73b9e3b356ef1a6df923204d424cc7a9792e6e46 , we can also undo it when it's not fine for you.

ClaraBuettner commented 1 year ago

I did the changes for the busmap on a sub branch of this one: features/disaggregate-links-and-stores-update-busmap