dosma.defaults._Preferences
- class dosma.defaults._Preferences[source]
A pseudo-Singleton class implementation to track preferences.
Do not instantiate this class. To modify/update preferences use the
preferencesmodule variable defined below.However, in the case this class is instantiated, a new object will be created, but all config properties will be shared among all instances. Meaning modifying the config in one instance will impact the preferences state in another instance.
Methods
__init__()cmd_line_flags()Provide command line flags for changing preferences via command line.
get(key[, prefix])Get preference.
save()Save preferences to file.
set(key, value[, prefix])Set preference.
Attributes
configGet preferences configuration.
fitting_r2_thresholdr2 threshold for fitting
image_data_formatFormat for images (e.g.
mask_dilation_raterate for mask dilation.
mask_dilation_thresholdthreshold for mask dilation.
nipype_loggingnipype library logging mode.
segmentation_batch_sizeBatch size for segmentation models.
visualization_use_vmax