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

r.sun.daily: add average method #933

Merged
merged 9 commits into from
Aug 9, 2023

Conversation

pesekon2
Copy link
Contributor

No description provided.

@pesekon2 pesekon2 added the enhancement New feature or request label Jul 24, 2023
@pesekon2 pesekon2 self-assigned this Jul 24, 2023
sorry, r.green changes were an unrelated work-in-pruogress code
"""
maps = "+".join([basename + suf for suf in suffixes])
grass.mapcalc(
"{out_} = ({new}) / {maps_count}".format(
Copy link
Contributor

Choose a reason for hiding this comment

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

consider f-string here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did consider it but wanted to keep the formatting that is used throughout the module. There are a few more places where this would be favoured, but I would prefer to change that in the entire module in another commit (making it easier to understand the reasoning behind commits through git blame).

Copy link
Member

Choose a reason for hiding this comment

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

I can't blame you, but you are introducing new code here and there is no need to be consistent with old practices.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that it is clearer to keep the full-module practice and then change the practice in the whole module in another commit, but whatever. It seems like a minor nitpick aspect to me, so I don't feel any need to fight for that tooth and nail. Changed in 961aa5b.

Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

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

Looking at the description of options like beam_rad, I would suggest to replace cumulated by aggregated.

@pesekon2
Copy link
Contributor Author

Looking at the description of options like beam_rad, I would suggest to replace cumulated by aggregated.

You're right. Changed in 1969aba.

@pesekon2 pesekon2 merged commit 719723f into OSGeo:grass8 Aug 9, 2023
7 checks passed
@pesekon2 pesekon2 deleted the r_sun_daily_support_avg_method branch August 9, 2023 08:54
cwhite911 pushed a commit to cwhite911/grass-addons that referenced this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants