LoadYAML¶
- MacroModule¶
 genre
author
package
definition
see also
keywords
Purpose¶
Converts the content of a YAML (https://en.wikipedia.org/wiki/YAML) file into a python object.
Usage¶
Choose the source file at YAML File Name and press update. The loaded object will become available at outPythonObject.
Details¶
Note that an empty file will result as an error as a None object cannot be transmitted as a python object.
Windows¶
Default Panel¶
Output Fields¶
outPythonObject¶
- name: outPythonObject, type: MLBase¶
 Python object (string, number, list, dict) representing the YAML input file contents, or None on error/empty file.
Parameter Fields¶
Field Index¶
  | 
  | 
  | 
  | 
  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Visible Fields¶
YAML File Name¶
- name: inFilename, type: String¶
 Name of the YAML file to load.
Expand environment variables (e.g. ${HOME}) in values¶
- name: inExpandEnvironmentVariables, type: Bool, default: FALSE¶
 If enabled, values (not keys!) referencing valid environment variables via $ABC or ${ABC} are expanded.
Require valid file signature (depending on the used license)¶
- name: inCheckSignatureInApplicationMode, type: Bool, default: FALSE¶
 If enabled, the module will expect the YAML file to be signed by MeVisLab (it may also be encrypted) for the current license.
In particular, when used in a standalone application with a normal user (i.e. non-developer) license, the file must be signed for application usage, or it will be rejected.
Output Object Datatype¶
- name: outDatatype, type: String, persistent: no¶
 Datatype of the toplevel python object read.
Update¶
- name: update, type: Trigger¶
 Initiates update of all output field values.
Clear¶
- name: clear, type: Trigger¶
 Clears all output field values to a clean initial state.
On Input Change Behavior¶
- name: onInputChangeBehavior, type: Enum, default: Clear, deprecated name: shouldAutoUpdate,shouldUpdateAutomatically¶
 Declares how the module should react if a value of an input field changes.
Values:
Title  | 
Name  | 
Deprecated Name  | 
|---|---|---|
Update  | 
Update  | 
TRUE  | 
Clear  | 
Clear  | 
FALSE  | 
[]¶
- name: updateDone, type: Trigger, persistent: no¶
 Notifies that an update was performed (Check status interface fields to identify success or failure).
Has Valid Output¶
- name: hasValidOutput, type: Bool, persistent: no¶
 Indicates validity of output field values (success of computation).
Status Code¶
- name: statusCode, type: Enum, persistent: no¶
 Reflects module’s status (successful or failed computations) as one of some predefined enumeration values.
Values:
Title  | 
Name  | 
|---|---|
Ok  | 
Ok  | 
Invalid input object  | 
Invalid input object  | 
Invalid input parameter  | 
Invalid input parameter  | 
Internal error  | 
Internal error  | 
Status Message¶
- name: statusMessage, type: String, persistent: no¶
 Gives additional, detailed information about status code as human-readable message.