SDF.config module

Settings accessible to the user (via a config file)

class SDFConfig(use_system_jpkfile: bool = False, use_system_oiffile: bool = False, use_system_mfpfile: bool = False, use_system_tifffile: bool = False)[source]

Bases: object

Representation of the config file

use_system_jpkfile: bool = False

if True: don’t import jpkfile from SDF.extern

use_system_mfpfile: bool = False

if True: don’t import mfpfile from SDF.extern

use_system_oiffile: bool = False

if True: don’t import offile from SDF.extern

use_system_tifffile: bool = False

if True: don’t import tifffile from SDF.extern

determine_config_dir()str[source]

Returns the absolute path of the sdf configuration directory. Creates the directory if it did not exist.

load_config(config_file)SDF.config.SDFConfig[source]

Load configuration from config_file