write#
- lsst.images.serialization.write(obj: Any, path: str, **kwargs: Any) Any#
Write
objtopath, dispatching by file extension.Forwards
**kwargsto the per-backendwrite(e.g.compression_optionsfor FITS). No registry lookup is performed: the per-backendwritealready accepts any object with aserializemethod.Parameters#
- obj
Object to write; must implement
serializelike the per-backend write functions expect.- path
Destination path. The extension selects the backend.
- **kwargs
Forwarded verbatim to the backend’s
write.
Returns#
- Any
Whatever the per-backend
writereturns (the serialised archive tree).