DMF Global Configuration

class idaes.dmf.dmf.DMFConfig(defaults=None)[source]

Global DMF configuration.

Every time you create an instance of the DMF, or run a dmf command on the command-line, the library opens the global DMF configuration file to figure out wthe default workspace (and, eventually, other values).

The default location for this configuration file is “~/.dmf”, i.e. the file named “.dmf” in the user’s home directory. This can be modified programmatically by changing the “filename” attribute of this class.

The contents of .dmf are formatted as YAML, with the following keys defined:

workspace
Path to the default workspace directory.

An example file is shown below:

{workspace: /tmp/newdir}