-
Notifications
You must be signed in to change notification settings - Fork 186
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
NetCDFOutputWriter
should have mode = "c"
as default?
#2339
Comments
The default depends on whether the file already exists or not? Just above that... Oceananigans.jl/src/OutputWriters/netcdf_output_writer.jl Lines 293 to 298 in 6ceeb01
|
It's all a little weird though I agree... Partly I think we're in a much better position to figure out whether we want to destroy an existing file or append to a new one when we call |
Something about "initializing" an output writer only after we call |
Resolved, right @tomchor ? |
Kinda. The current behavior is this Oceananigans.jl/src/OutputWriters/netcdf_output_writer.jl Lines 302 to 308 in 470fd11
So the default is similar to what it was when this issue was posted, although I think it's formulated a little clearer now. I'm okay with this and also okay with closing this issue, but I'm not sure everyone else feels this way. You mentioned at some point that we could move this part to after |
Oh I see... you're right, we should leave this open. |
I'm closing this issue because I'm judging that it's not of current, timely relevance to Oceananigans development. If you would like to make it a higher priority or if you think the issue was closed in error please feel free to re-open. |
I was reading the
NetCDFOutputWriter
docstring and I got confused. Whymode = nothing
is set as default inNetCDFOutputWriter
Oceananigans.jl/src/OutputWriters/netcdf_output_writer.jl
Line 289 in 6ceeb01
and then straight after is converted to
mode = "c"
Oceananigans.jl/src/OutputWriters/netcdf_output_writer.jl
Line 301 in 6ceeb01
?
Why not have
mode = "c"
the default?The text was updated successfully, but these errors were encountered: