You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the in-code documentation suggests 1 that one is able to change the regrid_dir path created by Utilities.setup_output_dirs(), this is automatically set to a new temporary directory regrid_tmp_<random string> and one cannot provide an alternative path. 2
The directory is not removed at the end of the simulation, which in my case leads to a new empty directory being created every time I run a simulation.
I propose to add another optional argument regrid_dir = nothing to allow users to set a custom path.
Even though the in-code documentation suggests 1 that one is able to change the regrid_dir path created by Utilities.setup_output_dirs(), this is automatically set to a new temporary directory regrid_tmp_<random string> and one cannot provide an alternative path. 2
The directory is not removed at the end of the simulation, which in my case leads to a new empty directory being created every time I run a simulation.
I propose to add another optional argument regrid_dir = nothing to allow users to set a custom path.
Hi Valentina! Thanks for pointing this out. We recently changed this function and missed the docstring update. If you would find it to be helpful, we can expose regrid_dir again as something the user can set.
As far as the directory not being removed, regrid_dir is currently created using mktempdir. From the docs for this function, "the temporary directory is automatically deleted when the process exits." So if you're running in the REPL, the directory will be deleted when you exit the REPL, not necessarily when the simulation finishes. If you run by directly calling julia --project=experiments/ClimaEarth experiments/ClimaEarth/run_amip.jl, the regrid dir should be deleted when the file is finished executing.
Even though the in-code documentation suggests 1 that one is able to change the
regrid_dir
path created byUtilities.setup_output_dirs()
, this is automatically set to a new temporary directoryregrid_tmp_<random string>
and one cannot provide an alternative path. 2The directory is not removed at the end of the simulation, which in my case leads to a new empty directory being created every time I run a simulation.
I propose to add another optional argument
regrid_dir = nothing
to allow users to set a custom path.Footnotes
https://github.com/CliMA/ClimaCoupler.jl/blob/f66d5df7ad2b8acd67280390708f4dbcf4dfaeaa/src/Utilities.jl#L104 ↩
https://github.com/CliMA/ClimaCoupler.jl/blob/f66d5df7ad2b8acd67280390708f4dbcf4dfaeaa/src/Utilities.jl#L111 ↩
The text was updated successfully, but these errors were encountered: