weldx.asdf.util.get_yaml_header#

weldx.asdf.util.get_yaml_header(file, parse=False)#

Read the YAML header part (excluding binary sections) of an ASDF file.

Parameters:
Returns:

The YAML header as string the ASDF file, if parse is False. Or if parse is True, return the parsed header.

Return type:

str, dict