-
Notifications
You must be signed in to change notification settings - Fork 190
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
Integrate RDIR for sector scripts #1154
Conversation
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.
Thanks @yerbol-akhmetov :D
This PR touches a topic that was discussed a while back with -sec users and at the time we decided to decouple the definition of RDIR to avoid retriggering the whole workflow for the same country while a subset of parameters change.
To be honest, I'd be in favour of merging this PR, but a comment by @energyLS and/or @hazemakhalek and/or @Eddy-JV is encouraged.
While reviewing, I noticed that the output of prepare_energy_totals is better placed into resurces rather than data.
If Leon and hazem also agree with merging this PR, that could be combined here if interested :)
@davide-f I agree about the prepare_energy_totals output. The idea of the PR is good and makes the setup cleaner, but in practice, this will cost us so much unnecessary computation. Shall we chat about this tomorrow? |
Thanks, @hazemakhalek. Yes, I would be glad to hear pros and cons. |
By comparing the original -sec and the merge, some changes have been merged but the old feature is no longer available. We could think about considering the scenario management that is implemented in -eur |
In PyPSA-Eur, paths are generally provided using resources, where |
Hi, @davide-f. I have implemented folder structure that we discussed in PyPSA-Earth meeting. |
Great proposal for the naming; that seems a great approach. I fear there was a misunderstanding: the proposal was to use SECDIR instead of RDIR, while keeping the rest the same. |
Hi, @davide-f, thanks for clear explanation. Now I see what you mean. Your suggestion is to store sector data in Now we see two methods. Which approach would you prefer? If we use SECDIR instead of RDIR for sector, the only thing is if you accidentally name |
Hi, @davide-f. I have implemented your suggestion. Now sector data is stored in SECDIR. So if SECDIR='', it will be old way of data management (and it is by default). If you want to have different sector scenario, we just name SECDIR. The output files in results are stored as |
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.
Great work @yerbol-akhmetov :D
Merging
Changes proposed in this Pull Request
Good day. Here I propose to integrate
RDIR
for input and outputs of sector rules. Currently, sector related intermediate data is directly stored inresources/
which his not convenient when simulating multiple scenarios or different countries. This PR aims to resolve it by making sector scripts consistent with power only scripts. I have tested the change for NG and US. What are your thoughts about it @davide-f? @GbotemiB told me that you have discussed that option.Checklist
doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.