roundtrip_object
- asdf.testing.helpers.roundtrip_object(obj, version=None)[source]
Add the specified object to an AsdfFile’s tree, write the file to a buffer, then read it back in and return the deserialized object.
- Parameters:
- objobject
Object to serialize.
- versionstr or None.
ASDF Standard version. If None, use the library’s default version.
- Returns:
- object
The deserialized object.