Configuration¶
Specifying Config Files¶
Finch uses Python’s configparser library for configuration.
The default configuration can be found at src/finch/data/config/default.ini
.
You can provide a custom configuration file named finch.ini
in the current working directory.
Alternatively, you can specify the location of a custom configuration file via the CONFIG
environment variable.
A custom configuration file will overwrite the individual configuration options from the default configuration.
Config File Content¶
A finch config file is a standard .ini
file.
You can cross-reference variables with ${section:variable}
.
You can reference environment variables with the %
prefix, which allows for standard bash substitutions.
Configurable Values¶
[global]
¶
- log_level¶
-
Sets the log level for finch. This can be one of the levels from python’s logging library. This defaults to
WARNING
ifdebug_mode
is disabled andDEBUG
otherwise.
- debug_mode¶
-
Toggles debug mode for finch. This sets the default
log_level
toDEBUG
and runs finch on a local dask cluster instead of a SLURM cluster.
[data]
¶
- grib_definition_path¶
-
The path to a grib definition. Multiple paths can be passed, separated by a colon (
:
).
- input_store¶
-
The path to a directory which holds the input store for finch.
[experiments]
¶
- results_dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where experiment results are stored.
- scaling_timeout¶
-
The timeout for waiting for worker startup in seconds, when scaling the dask cluster.
[evaluation]
¶
- dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where evaluation results are stored.
- pref_report_dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where performance reports are stored.
- plot_dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where plots are stored. If this is the same as
dir
, the plots will be stored in a separate experiment-specific directory inside thedir
directory.
- config_dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where experiment configurations are stored.
- config_dir¶
-
Warning
Deprecated. Will be moved to run configurations.
Path to a directory where experiment results are stored.
[brn]
¶
- grib_index_dir¶
-
The path where grib index files for BRN experiments are stored and loaded.
[run]
¶
- config_path¶
-
The path to a custom run configuration file.