braincell.io.save_morpho#
- braincell.io.save_morpho(morpho, path)[source]#
Write a
Morphoto a braincell checkpoint file.- Parameters:
morpho (
Morphology) – Morphology to serialize. The current default-ordering snapshot is captured; the in-memory tree is not modified.path (
str|PathLike) – Destination path. If the path has no suffix,.bcmis appended automatically.
- Returns:
The final path the checkpoint was written to.
- Return type:
- Raises:
TypeError – If morph is not a
Morphoinstance.
See also
load_morphoInverse operation.
save_branchPersist a single branch.