BaseWriter.write_dataset#
- abstractmethod BaseWriter.write_dataset(obj: Dataset | DataTree, path: Path) None[source]#
Write the object in this writer’s format.
Called with attributes already encoded and provenance already applied, so implementations only have to deal with the format itself.
- Parameters:
obj – Dataset or DataTree to write.
path – Destination path, already resolved.