-
Notifications
You must be signed in to change notification settings - Fork 150
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
r.sun.daily: add average method #933
Conversation
to correspond with r.statistics
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( |
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.
consider f-string here
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 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
).
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 can't blame you, but you are introducing new code here and there is no need to be consistent with old practices.
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 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.
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.
Looking at the description of options like beam_rad, I would suggest to replace cumulated by aggregated.
You're right. Changed in 1969aba. |
No description provided.