weldx.asdf.util.write_buffer#

weldx.asdf.util.write_buffer(tree, asdffile_kwargs=None, write_kwargs=None, _use_weldx_file=None, _invoke_show_header=None)#

Write ASDF file into buffer.

Parameters
Returns

Bytes buffer of the ASDF file.

Return type

io.BytesIO

Notes

In addition to the usual asdf.AsdfFile.write_to arguments in write_args you can pass the parameter “dummy_arrays”. If set, all array data is replaced with a empty list.