New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clustering problem seemingly caused by addition of new TYNDP projects #996
Comments
Hi @koen-vg , I would like to share with you my problem which seems to be related to the one you have. Here is the bug description. I am using I have a working workflow on a macos machine and the same code (and virtual environment) on a linux computation server that does not work. On the computation server, the error is raised in But DE1 0 is the only DC bus, which leads to its deletion in I've checked the clustermaps (built in Comparing with the macos execution, I see that the tree = spatial.KDTree(buses[["x", "y"]]) On macos, the selected buses to attach TYNDP HVDC are mapped to AC buses in the clustered network. This avoid any unwanted deletion in So what to do ?
@fneum Do you have any specific insights on this one ? |
The issue with randomness reminds me a little of #313, but looking at the documentation it seems like |
Anyway, your fix works on my side too. |
For the maintainers: would it be an option to comment out the link in question until a proper fix has been found? |
I saw that issue before, and my hotfix was to force all bus carriers to |
I'm sure you have a better understanding of the details so if you think this is a good solution then go for it. Just for my curiosity: are there any downsides to forcing the |
I honestly don't know... Could you check in your case what the distribution of AC and DC bus carriers is after the simplify_network with your hotfix? |
Sure I can try to have a quick look. |
I had already thought of something like this. My idea was to filter out carriers other than |
Well I can confirm that with the default configuration, applying the hotfix of removing the offending link has the consequence of leaving no buses with carrier |
I am currently investigating why the specific TYNDP line causes this error. Because I think to solve this problem sustainably, we should find another method besides just removing the TYNDP line. It is somehow connected to the fact that all the other DC buses are mapped to their AC connection point (in the method |
Great, thanks ! From what I've seen, it's probably due to the geographical location of the line. As I said in one of my previous comments, there is no colocated AC bus (as far as I can see). |
This is fixed in #1067. I just wanted to highlight that we will likely switch the base network data from the ENTSO-E website to OSM data with a more uniform process of adding TYNDP and other planned transmission projects soon. |
Checklist
master
branch or the latest release. Please indicate.pypsa-eur
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
Commit c5026aa seems to have caused a strange kind of regression. It causes an additional sub_network with a single node to be added to Germany, but one without any load, meaning that that node isn't clustered correctly (since no nodes are allocated to it in the clustering).
The problem goes away after removing the following line from
data/links_tynpd.csv
:The node in question has a
generator
column with the valueonwind
, so I guess that the mechanism of the problem is that some onshore wind farm happens to be very close to one of the above HVDC terminals, and gets assigned to the corresponding bus. But the carrier isDC
for this node, and so with this carrier and a generator attached, it doesn't get simplified/merged into the German AC grid.The above is kind of conjecture; I didn't really have time to dig deep into the details. I'm not super familiar with the building and simplification of the base network, so I'm not 100% where to fix the problem either.
For reference, the problem only actually surfaced a while later in the workflow for the sector-coupled network when clustering the gas network.
The text was updated successfully, but these errors were encountered: