-
Notifications
You must be signed in to change notification settings - Fork 284
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
added note about laziness of operations to statistical functions #3293
added note about laziness of operations to statistical functions #3293
Conversation
@valeriupredoi @ledm How's this format for you? |
Good one, thanks! |
music to my ears 😁 cheers @corinnebosley 🍺 |
@@ -31,6 +31,8 @@ | |||
def _ones_like(cube): | |||
""" | |||
Return a copy of cube with the same mask, but all data values set to 1. | |||
|
|||
The operation is non-lazy. |
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 may be missing some context here as to the purpose of this PR, but this line doesn't seem necessary to add.
I'm assuming your intention is to clarify which functions are lazy for the user. If that is the case, it is surely not necessary to add this to a private function, which won't be included in the documentation?
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 guess this note would be useful for the next developer who looks at the code, wanting to make the public function lazy?
@corinnebosley Thanks. |
Only two functions to clarify here. This is a small one to start us off.