-
Notifications
You must be signed in to change notification settings - Fork 204
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
Documentation improvement in the configuration section_v2 #694
Conversation
…rial configuration file.
…art-at end-before Sphinx commands
…t, retrieve_natura_raster, custom_busmap from top level configuration table
…the table to match config.default.yaml.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
config.default.yaml
Outdated
@@ -3,12 +3,26 @@ | |||
# SPDX-License-Identifier: CC0-1.0 | |||
|
|||
version: 1.0.0 | |||
|
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.
Is this additional string added with some purpose?
My feeling is that tutorial
flag and version are close enough by their meaning. Apart of that, it would be nice to keep the config as compact as we can
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.
Hi @ekatef, it was introduced for consistency, as every "section" of the config file is separated by a space. I agree it is pedantic in this case, so I will revert it back.
config.tutorial.yaml
Outdated
@@ -3,21 +3,13 @@ | |||
# SPDX-License-Identifier: CC0-1.0 | |||
|
|||
version: 1.0.0 | |||
|
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.
Which purpose does have this additional empty line?
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.
Hi @ekatef, same as in the config.default.yaml. Just me being a bit pedantic hehe. I will remove it as in config.default.yaml. Thanks for your feedback :)
Hey @asolavi! That is awesome to have you back ;) Have you tested the updated documentation locally? |
Hi @ekatef, many thanks for your detailed feedback :). While working on this PR, I found a couple of questions/discussion points. I summarise them below. Your comments on them would be greatly appreciated.
|
Thanks @ekatef, I'm very happy to be back, and hopefully can finish this PR sometime this week. All the sections that have been commited have been tested locally using make :). I'll keep doing that before commiting. |
for more information, see https://pre-commit.ci
Hey @asolavi! My pleasure and sorry for a delay with an answer. Chained deadlines are not always easy to deal with :) Answering point-by-point:
Agree,
My feeling is that the most comprehecsive description on augmentation procedure is contained in PyPSA-Earth paper: "A k-edge augmentation algorithm that guarantees every node has a modifiable number of connections to other nodes. Only if nodes do not already fulfil the connectivity condition, the algorithm will create new lines to the nearest neighbour by a minimum spanning tree. The new ‘augmented’ lines can be set to an insignificant size (e.g. 1 MW) to create new options for line expansion in the investment optimization" Regarding pypsa-earth/scripts/augmented_line_connections.py Lines 109 to 114 in bf3cbea
I agree that currently the same property has too many different names which can be misleading. Feel free please to suggest a more clear way to explain it |
Hi @asolavi, regarding the questions on renewables configuration:
You are absolutely correct :)
As for |
Super!!! :)
Agree,
It looks like
Absolutely correct :) |
@asolavi, absolutely agree that it's perfect time for review :) |
… of the extendable feature.
for more information, see https://pre-commit.ci
… descriptions for hydro resource methods.
Thank you very much @ekatef for the detailed information :). All points below have been addressed.
Added the
OK, thanks. No action needed here as it was written already assuming it in the corresponding commit.
Great, the rows for |
Thanks again for your help, @ekatef. If this looks reasonable, all good. These were removed already in the corresponding commits, so no further action required :).
|
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 @asolavi. This is a massive contribution. I will merge some little changes in a moment.
for more information, see https://pre-commit.ci
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.
Looks good to me. @ekatef feel free to merge. (sorry for not running pre-commit before :/)
My changes:
- theme change according pypsa-eur
- reduce warnings from 250 warning to 53 warnings when compiling the HTML with
make html
(e.g. using width instead of :scale:, add/remove requirements, fix some links)
Thank you @ekatef for your crucial help throughout this PR. Thank you @pz-max for the review and the many final editions. Maybe related to the PR in PyPSA-Europe, I've noticed that building the docs now shows this error:
It doesn't seem to affect the creation of the configuration page of the docs, but suspiciously now building the documentation takes much less time. I've tried that in a freshly installed environment pypsa-earth-docs, and still same error. |
PS: Just seen that @pz-max has a commit add myst_parser to conf.py in PR 658 from PyPSA-Eur which I suspect should fix this. |
@asolavi, well spotted. Do you like to add a PR @asolavi removing the |
@asolavi that is a pleasure to collaborate with you. Happy to continue 😉 Absolutely agree with @pz-max that an update would be very helpful on how to build a doc environment. I also needed a couple of attempts yesterday to get the updated version work :) Currently, doc instructions are included into how_to_doc file which is embedded into tutorial section with |
Closes #609.
This pull request aims to improve the documentation of the Configuration section. It addresses points 3, 4 and 5 of #609. Thanks @ekatef for the feedback. It is a fresh restart on PR #612, since it has been a while (and Albert changed GitHub account).
Changes proposed in this Pull Request
The picture in the lines section includes too many things, the “lines” only appear at the very end.
Create subsections in the electricity section, as in the renewables section.
The section load from the documentation doesn’t seem to refer to anything on the config file. Shall we remove this?
Add a short description in each subsection, as it is done in run.
General consistency check accross the configuaration section.
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
andconfig.tutorial.yaml
.test/
(note tests are changing the config.tutorial.yaml)doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.