-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fixes/#220 #237
base: release/v0.4.0
Are you sure you want to change the base?
Fixes/#220 #237
Conversation
Taken from renpass_gis hidden relations.
To transfer data from renpass_gis to powerflow relations helper functions and constants are needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if this conflicts with the changes @MarlonSchlemminger implemented in #233.
Thank you for your feedback @MarlonSchlemminger , @IlkaCu ! If I got this right p_max_pu have to be set based on ren_feedin_by_gen_id for German renewable sources and ren_feedin_foreign for all other sources. Offshore for foreign countries is handled differently and is based on ego_renewable_feedin, ego_neighbours_offshore_point. Is this correct @MarlonSchlemminger ? Do I miss something? If so, I guess, that's where I could start. |
These are not part of egoio yet and cannot be imported.
To simplify this process p_max_pu will be handled in an additional loop over the eGo scenarios.
There might be a problem in the current dev. data_processing/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql Lines 68 to 96 in dc096ef
The query will return multiple duplicate generator ids with corresponding, but different feedins based on the different power_class, w_id (?). data_processing/dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql Lines 114 to 118 in dc096ef
The update is based on generator_id alone which will assign one of the multiple corresponding feedins provided by the previously constructed view, if I'm not mistaken. This is related to #245. If you think, it's best, I will reopen that pull reqest! I tried to handle it in f4765af afccca9. With regard to this pull request there is unfortunately still some/a lot work to do and I'm struggling with the different ids. Maybe I can ask you about it @IlkaCu |
In my local view, there is only one entry per generator_id. There are some rows without a generator_id where I don't know why they exist, but they shouldn't have any effect because they will not be used during the assignment of the feedins. I can't test it on the oedb, because the view doesn't exist there. Where did you get the problem, on your local database? Did you run the new version of ego_dp_powerflow_assignment_generator.sql before? |
Deleted my previous comment to avoid further confusion. Thanks @MarlonSchlemminger, I assumed the aggr_id would be a unique combination of scn_name, bus, source, but I now see, that it also takes into account the w_id and power_class. |
Atm timeseries generator handles discrepancies within the scenario definition of renpass_gis and powerflow.
Discrepancies in scenario defintion is handled in a separate issue znes/FlEnS#3
p_set Germany
Timeseries_generator_other_p_set does only write timeseries data to the field p_set in case of neighbouring countries.
Neighbours table has to be used to determine the bus_id based on country codes.
Hmm, does ego_neighbours_offshore_point have the right permissions set? I do not know why, but I'm not able to make a backup of it. |
right, I just changed it ✅ |
Still missing in this PR to address bug #220 is the assignment of offshore wind feedin data for neighbouring countries, which I can maybe add on Friday at the earliest. Also, and that's maybe a dealbreaker, the PR does rely on an updated ego.io https://github.com/openego/ego.io/tree/fixes/dataprocessing-%23220/egoio/db_tables. While the release is running changing dependencies might contradict version control in some way. But I guess, it's also important, that this PR after finalization still has to be reviewed, which might take some time too. I guess, it depends on whether there is a next release. |
The pull request is open for review again : ). Forgot to mention that. |
ok, I will check it later |
I just now realized another reason, why storage was commented out up until now and why stay this way. |
The implementation of the timeseries generator script gave often rise to questions. The script intended by me as a quick workaround is not very human readable anymore. With #220 as a starting point I tried to reimplement it in python.