3.1.1.7.1.3. xboinc.simulation_io.output
3.1.1.7.1.3.1. Classes
3.1.1.7.1.3.2. Module Contents
- class XbState(**kwargs)[source]
Bases:
xobjects.Struct
- classmethod from_binary(filename, offset=0, raise_version_error=True)[source]
Create an XbState from a binary file. The file should not contain anything else (otherwise the offset will be wrong).
- Parameters:
filename (pathlib.Path) – The binary containing the simulation state.
- Return type:
- to_binary(filename)[source]
Dump the XbState to a binary file.
- Parameters:
filename (pathlib.Path) – The binary containing the simulation state.
- Return type:
None.