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
Is your feature request related to a problem? Please describe.
This feature request is similar to the train of thought here. The idea is to have a function that setup the folders and placeholder config files for a user who wants to initiate a simulation / project. I wanted to play around with a soil-module-only simulation, but it seems that the best way is to copy the files from ve_example and then modify them?
Describe the solution you'd like
I was hoping for some function like setup_from_template(...) with a bunch of arguments, e.g.,
path of a new folder to generate for a project
what modules to include
settings for each modules
The result is to generate the necessary files in a new config and data folders.
One option is for this to be a single function with lots of arguments for the user to specify at once, but this could end up being very very long. Alternatively, the function could be interactive. For example, it could be something like setup_from_template("path/to/new/folder"), then it starts an interactive prompt:
and then the user would enter something like 1 3 5 and hit enter to get the next prompt:
For the core module, select a variable to configure initial values:
1. air_temperature_ref
2. relative_humidity_ref
3. ...
4. mean_annual_temperature
5. <accept the rest with default values> (or some ways to end the prompt)
When one selects air_temperature_ref to configure, the few options could be
I think the first part of this would be very useful, particularly with the setup of static/active modules (#373). It would be written as a function but the UI should be something like ve_utils generate_setup /path/to/new/folder.
Honestly, I don't think it should go beyond the model choice - the config files are designed to be human readable and it is going to be very tedious (and error prone) to do this interactively. But - giving people a tuned setup TOML file with "fill in the blanks" placeholders for the data files and settings would be very useful.
Is your feature request related to a problem? Please describe.
This feature request is similar to the train of thought here. The idea is to have a function that setup the folders and placeholder config files for a user who wants to initiate a simulation / project. I wanted to play around with a soil-module-only simulation, but it seems that the best way is to copy the files from
ve_example
and then modify them?Describe the solution you'd like
I was hoping for some function like
setup_from_template(...)
with a bunch of arguments, e.g.,The result is to generate the necessary files in a new
config
anddata
folders.One option is for this to be a single function with lots of arguments for the user to specify at once, but this could end up being very very long. Alternatively, the function could be interactive. For example, it could be something like
setup_from_template("path/to/new/folder")
, then it starts an interactive prompt:and then the user would enter something like
1 3 5
and hit enter to get the next prompt:When one selects
air_temperature_ref
to configure, the few options could be.nc
file)This cycles through all variables until the user is willing to accept the rest with the default.
Then the user runs
ve_run
on the generated configs and data.If this happens, it could even replace
ve_example
as a less hard-coded example???The text was updated successfully, but these errors were encountered: