OccSwap#
- class libcasm.monte.events.OccSwap(
- self: OccSwap,
- first: OccCandidate,
- second: OccCandidate,
Bases:
pybind11_object
Represents a Monte Carlo event that swaps occupants
Constructor
- Parameters:
first (
OccCandidate
) – The first candidate occupantsecond (
OccCandidate
) – The second candidate occupant
Methods
Construct an OccSwap from a Python dict
Checks if first and second are valid.
Transforms self so that first and second are reversed.
Mutates self so that (first, second) <= (second, first).
OccSwap: Returns the sorted swap.
Represent the OccSwap as a Python dict
Attributes
The first candidate occupant
The second candidate occupant