weldx.asdf.util.get_yaml_header

weldx.asdf.util.get_yaml_header(file)

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

Parameters

file – filename, pathlib.Path or BytesIO buffer of ASDF file

Returns

The YAML header the ASDF file

Return type

str