BioSimSpace.Stream¶
The Stream package contains tools for streaming wrapped Sire objects, i.e. objects from BioSimSpace._SireWrappers.
Functions¶
|
Stream a wrapped Sire object to file. |
|
Stream a wrapped Sire object from file. |
Examples
Stream a System
object to and from
file.
import BioSimSpace as BSS
# Load a molecular system.
system0 = BSS.IO.readMolecules(["ala.rst7", "ala.prm7"])
# Stream to file.
BSS.Stream.save(system0, "system")
# Alternatively, stream the system object directly.
system0.save("system")
# Stream from file.
system1 = BSS.Stream.load("system.s3")