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

Context manager to perform a buffered write/read roundtrip of a tree using default ASDF settings.

  • 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: