-
Notifications
You must be signed in to change notification settings - Fork 3
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
Do not add variables/attributes to a Dataset that is used as input #254
Comments
Another example is So should we start these methods with a copy of the Dataset? |
If the method has "set_" in the name, I think this is ok, as the function name is pretty clear that it's setting something? But good to review whether this is the desired behavior. |
Depends on the function. In the case of A few problems may arise when creating a copy. If you make a shallow copy you will modify the dataset anyway. Making a deep copy may be time consuming. So we should look into this when making a copy. |
I agree with this as well. So we should not create a copy for function starting with Now that I examined |
Yes , |
There are some functions that (unexpectedly) modify the Dataset that is used as input for the function. Mostly because variables or attributes are added to the Dataset. For examples the functions.
ds_to_rch
,ds_to_evt
andmodelgrid_to_vertex_ds
.The text was updated successfully, but these errors were encountered: