-
Notifications
You must be signed in to change notification settings - Fork 184
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 improvements in the Configuration section #612
Conversation
Point 1 is caused by the appearance of the text "lines:" before the lines section header. The lines section header is where the image should start to be displayed. For context, the images are created using the instruction: .. literalinclude:: ../config.default.yaml Since the text ''lines:'' appears before in the config.default.yaml file (namely in the instruction split_overpassing_lines: true), the image displayed is from that first appearance of "lines:" until the first appearance of the word "links:". Haven't found a good fix yet, but to illustrate the problem the first commit changes "lines:" for "PV:", which is an improvement. |
@asv365 A very good point regarding catching text from a wrong fragment. Thanks a lot for investigating it! Probably, Sphinx docs on literalinclude could be helpful to resolve this, eventually combined with other Shpinx magic. The most straightforward way seems to be use tag comments. But I suspect there might be a more elegant solution, as well. |
Thanks @ekatef, the suggestion on comments can be a good workaround if we can't find how to do it properly with Sphinx. If Sphinx proves tricky, we could add a header to every section of the config file, to be consistent. |
On point 3., the section "load" has been renamed "operational_reserve", and has been placed as a subsection of electricity. There is also the section "load_options", which doesn't exist in the documentation. This will be addressed as point 5, as part of the general consistency check. |
@ekatef found a solution to the point 1 we were discussing earlier without the need to use comments in the config file. Literalinclude allows the command |
@asv365 a very nice trick which looks absolutely in spirit of Sphynx! :) Probably, there is a little risk to catch an additional section in case it would be inserted between Although, the work you are doing is still a great improvement for clarity of the docs 🥇 |
Good point @ekatef. I'll add that comment in |
…ist anymore (summary_dir, focus_weights, retrieve_cutout, retrieve_nature_raster, custom busmap) and add download_osm_data.
@ekatef The top-level configuration section (which, according to the table in the docs includes "version", "tutorial", "logging", "countries", and "enable") has other sections inbetween. For example, "run" and "scenarios" are between "logging" and "countries" in the Do we want to bring all the items of the top-level configuration together at the top of the Another option would be to include those intermediate sections as part of the top-level configuration. Let me know what you think :). |
@asv365, thanks for rising this point! Our current Completely agree that it might be worth to revise underlying assumptions for making the result more robust and the docs more convenient. I feel that it is a very good point for discussion during developers meeting :) Would you mind to introduce this topic tomorrow? |
Thank you @ekatef. I'll raise it in tomorrow's meeting :) |
In the pypsa-earth weekly meeting on 02/03/2023, it was decided that:
|
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.
pre-commit needs fixes as it could not automatically get fixed.
How far are we from merging this PR @asv365 ?
@@ -25,7 +25,7 @@ Top-level configuration | |||
|
|||
.. literalinclude:: ../config.default.yaml | |||
:language: yaml | |||
:lines: 5-12,20,31-38 | |||
:lines: 5-12,24,31-38 |
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 think we will change that by the start-at
and end-at
stuff?
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.
yes @pz-max, that is the plan. Just did this to motivate the start-at
and end-at
approach. Will work through this soon I hope, a lot of work has popped up recently.
Hey @asv365! Very nice work so far :) |
Hi @ekatef, everything is good, thanks for asking and for offering help. I don't think there are bottlenecks so far. The reason for being so slow are job applications. Will come back to this in the next week or the one after hopefully. The dust is settling now. Apologies for the delay. |
@asv365, no worries! Good luck with your applications and come back once you'd have more time ;) |
This pull request is being addressed in PR #694 because a fresh restart was useful. |
Hello :) |
Thank you, yes! |
Closes
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.
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.