parameters
#
Manages image analysis parameters.
Settings are stored in a file named parameters.yaml
in the analysis
subfolder of the folder containing the input images. If that file does
not yet exist, it will be created and initialized with default values.
The user may edit that file manually for a given analysis run.
After calling init
, read or modify parameter values with the
get
and set
functions.
- init(folder: Path)[source]#
Loads configuration from
parameters.yaml
in givenfolder
.If that file does not yet exist, it will be created and initialized with default values for the parameters.
- get(section: str, name: str) Any [source]#
Returns the value of the
name
d parameter from the givensection
.
- set(section: str, name: str, value: Any)[source]#
Set the value of the
name
d parameter from the givensection
.
- defaults_file() Path [source]#
Returns the configuration file with the default parameter values.
The default values are stored in a file named
parameters.yaml
. The primary copy is distributed with this application and stored along with the executable. Typically, files in this location would be read-only, so we provide the user with a copy in their config folder instead, as they can then edit it.