3.1.1.7.1.3. xboinc.simulation_io.output

3.1.1.7.1.3.1. Classes

XbState

3.1.1.7.1.3.2. Module Contents

class XbState(**kwargs)[source]

Bases: xobjects.Struct

_version[source]
_i_turn[source]
_xsize[source]
_particles[source]
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:

XbState

to_binary(filename)[source]

Dump the XbState to a binary file.

Parameters:

filename (pathlib.Path) – The binary containing the simulation state.

Return type:

None.

property version[source]
property particles[source]
property i_turn[source]