Skip to content
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

Improve documentation 2 #959

Merged
merged 53 commits into from
Mar 13, 2024
Merged

Conversation

yerbol-akhmetov
Copy link
Collaborator

Changes proposed in this Pull Request

Good day, here I am addressing documentation improvements as a draft PR.

Checklist

  • I consent to the release of this PR's code under the AGPLv3 license and non-code contributions under CC0-1.0 and CC-BY-4.0.
  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changes in configuration options are also documented in doc/configtables/*.csv and line references are adjusted in doc/configuration.rst and doc/tutorial.rst.
  • A note for the release notes doc/release_notes.rst is amended in the format of previous release notes, including reference to the requested PR.

yerbol-akhmetov and others added 22 commits January 14, 2024 22:17
Copy link
Member

@ekatef ekatef left a comment

Choose a reason for hiding this comment

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

Hello @yerbol-akhmetov! Great work and a very needed improvement. My feeling is that your idea regarding structuring works very well.

Have gone through the PR and added some comments, which mostly relate to the points which have been updated quite recently but not yet documented properly. Feel free please to disagree and improve. That is a really tricky part, and I'm happy to discuss how can it be made more clear.

Thanks a lot for tackling this.

doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Show resolved Hide resolved
doc/customization_steps.rst Outdated Show resolved Hide resolved
Copy link
Member

@ekatef ekatef left a comment

Choose a reason for hiding this comment

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

Hello @yerbol-akhmetov! Looks almost perfect. Great work!

Have gone through the updated version and added some comments, mostly quite minor suggestions for improvements. The only significant point left is to check consistency in a description when a custom cutout is needed.

My general feeling is that we are quite close to finalise :)

doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_basic1.rst Outdated Show resolved Hide resolved
doc/customization_copernicus.rst Outdated Show resolved Hide resolved
doc/customization_copernicus.rst Outdated Show resolved Hide resolved
doc/customization_copernicus.rst Show resolved Hide resolved
doc/customization_run.rst Show resolved Hide resolved
doc/customization_run.rst Show resolved Hide resolved
doc/customization_steps.rst Outdated Show resolved Hide resolved
Copy link
Member

@davide-f davide-f left a comment

Choose a reason for hiding this comment

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

Great Yerbol :D Close to finalize as discussed today :)

.. _customization_steps:

#######################################
3. General Guidelines for Modeling
Copy link
Member

Choose a reason for hiding this comment

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

As a refence, as discussed today, it may be good to revise this steps as a preliminary introduction for the overall full tutorial, while moving more advanced concepts into the relative steps.
Great Yerbol :D This seems the last step to finalize. Congratulations!

doc/customization_validation.rst Outdated Show resolved Hide resolved
doc/customization_steps.rst Outdated Show resolved Hide resolved
Copy link
Member

@davide-f davide-f left a comment

Choose a reason for hiding this comment

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

Nice @yerbol-akhmetov :D
Minor elements on my side :) @ekatef what about you?

doc/customization_steps.rst Show resolved Hide resolved
2. Basic customization
#######################

A good starting point to customize your model are settings of the default configuration file `config.default`. You may want to do a reserve copy of your current configuration file and then overwrite it by a default configuration:
Copy link
Member

Choose a reason for hiding this comment

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

Could make sense to add an extension to the file name: config.default.yaml (not crucial, just for consistency)


.. note::

Ensure that the selected data range aligns with the dates available in the cutout dataset. If the weather data within the cutouts corresponds to the year 2013, then the range of snapshots should fall within that same year.
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't date range instead of data range be more specific?

prediction_year: 2030
scale: 1

The `weather_year` value corresponds to the weather data which was used to generate the electricity demand profiles for a selected area while `prediction_year` correspond to the point of a `Shared Socioeconomic Pathways (SSP) <https://en.wikipedia.org/wiki/Shared_Socioeconomic_Pathways>`__ trajectory. PyPSA-Earth uses SSP2-2.6 scenario within the Shared Socioeconomic Pathways framework, which is characterized by medium challenges to mitigation and adaptation efforts resulting in a global warming of approximately 2.6°C by the end of the 21st century.
Copy link
Member

Choose a reason for hiding this comment

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

Could make sense to fix a typo: -> prediction_year corresponds

Choose the solver
-----------------

To solve full optimization problem, it is important to pick a solver in `config.yaml` file. For instance, this tutorial uses the open-source solver glpk and does not rely
Copy link
Member

Choose a reason for hiding this comment

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

Isn't an article needed here, like a full optimization problem?

doc/customization_validation.rst Show resolved Hide resolved
@ekatef
Copy link
Member

ekatef commented Mar 13, 2024

Nice @yerbol-akhmetov :D Minor elements on my side :) @ekatef what about you?

An absolutely fantastic work @yerbol-akhmetov @davide-f!!!

According to my impression, the PR was still in a good shape, while thanks to Davide's review, the documentation has become brilliant. I really like the idea to include a part which relates to validation.

Have added a couple very minor comments and a question on adding a short explanation for essence of the Demand input.

Looking forward to see the PR merged :D

@davide-f
Copy link
Member

@ekatef I have no more comments, as you are satisfied, feel free to merge :)

@ekatef ekatef merged commit 79c4520 into pypsa-meets-earth:main Mar 13, 2024
4 checks passed
@ekatef
Copy link
Member

ekatef commented Mar 13, 2024

Merged, which means a dramatic increase in quality of our docs 🎉 🎉 🎉

@yerbol-akhmetov thanks a lot for the awesome contribution.

@davide-f thank you so much for the fantastic support :D

@yerbol-akhmetov yerbol-akhmetov deleted the improve_docs2 branch March 14, 2024 05:07
@yerbol-akhmetov yerbol-akhmetov restored the improve_docs2 branch March 14, 2024 16:13
@yerbol-akhmetov yerbol-akhmetov deleted the improve_docs2 branch October 16, 2024 14:42
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.

3 participants