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 preferences module 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.

__init__()[source]

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

config

Get preferences configuration.

fitting_r2_threshold

r2 threshold for fitting

image_data_format

Format for images (e.g.

mask_dilation_rate

rate for mask dilation.

mask_dilation_threshold

threshold for mask dilation.

nipype_logging

nipype library logging mode.

segmentation_batch_size

Batch size for segmentation models.

visualization_use_vmax