weldx.asdf.util.write_read_buffer#

weldx.asdf.util.write_read_buffer(tree, asdffile_kwargs=None, write_kwargs=None, open_kwargs=None)#

Perform a buffered write/read roundtrip of a tree using default ASDF settings.

Parameters
  • tree (dict) – Tree object to serialize.

  • asdffile_kwargs – Additional keywords to pass to asdf.AsdfFile

  • write_kwargs – Additional keywords to pass to asdf.AsdfFile.write_to Extensions are always set.

  • open_kwargs – Additional keywords to pass to asdf.AsdfFile.open Extensions are always set, copy_arrays=True is set by default.

Return type

dict