Skip to content

added new technologies for storages in neighbouring countries in scn …#284

Merged
lukasoldi merged 7 commits intorelease/v0.4.1from
feature/fix_#275
Jun 13, 2018
Merged

added new technologies for storages in neighbouring countries in scn …#284
lukasoldi merged 7 commits intorelease/v0.4.1from
feature/fix_#275

Conversation

@lukasoldi
Copy link
Contributor

please see #275

Should work fine now, but I am not certain if this will comply with the changes by @wolfbunke in #283 since in my tests I was having trouble finding storages in LU and AT. @wolfbunke can you check?

@lukasoldi
Copy link
Contributor Author

I just found an issue that I couldn't resolve, but must be easy for some of you: the storage_id is not unique, since it just uses the row_number of the sql query plus 200000. since we have several queries, some are doubled. Any nice ideas on how to resolve that?

Copy link
Contributor

@ulfmueller ulfmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to be consistent I would name the new carriers with underscores. battery_storage and hydrogen_storage.

@IlkaCu
Copy link
Member

IlkaCu commented Jun 13, 2018

I just found an issue that I couldn't resolve, but must be easy for some of you: the storage_id is not unique, since it just uses the row_number of the sql query plus 200000. since we have several queries, some are doubled. Any nice ideas on how to resolve that?

We could introduce a sequence starting with max(storage_id)+200000. I'll try to introduce it in the code.

@lukasoldi
Copy link
Contributor Author

Thanks for the updates @IlkaCu
@ulfmueller and @wolfbunke could you re-check or add your reviews?

Copy link
Contributor

@ulfmueller ulfmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without testing it, just from reading the code it looks good.

@wolfbunke
Copy link

@lukasoldi
Copy link
Contributor Author

By changing the storage_id what happens with this code part?
https://github.com/openego/data_processing/blob/master/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql#L346-L348

Good point. @IlkaCu could we just add a '+200000' to the sequences?

@lukasoldi
Copy link
Contributor Author

I think it would be nice to somehow test this or do you think that the dp run is enough testing? If you're all ok with the latter I could merge.

@IlkaCu
Copy link
Member

IlkaCu commented Jun 13, 2018

Good point. @IlkaCu could we just add a '+200000' to the sequences?

It's already there, but included in the sequence itself: https://github.com/openego/data_processing/blob/feature/fix_%23275/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql#L359

@IlkaCu
Copy link
Member

IlkaCu commented Jun 13, 2018

By changing the storage_id what happens with this code part?
https://github.com/openego/data_processing/blob/master/dataprocessing/sql_snippets/ego_dp_powerflow_assignment_storage.sql#L346-L348

This part of the code may cause a problem when the storage_id of storages within Germany exceeds 20000. Those ones would be deleted then. From my point of view this part of the code can be removed as the whole table is dropped in the beginning of the powerflow-part.

@lukasoldi
Copy link
Contributor Author

This part of the code may cause a problem when the storage_id of storages within Germany exceeds 20000. Those ones would be deleted then. From my point of view this part of the code can be removed as the whole table is dropped in the beginning of the powerflow-part.

True, I deleted the respective lines.

@lukasoldi lukasoldi merged commit 5db5dcf into release/v0.4.1 Jun 13, 2018
@lukasoldi lukasoldi deleted the feature/fix_#275 branch June 13, 2018 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants