AlchemicalDOFStore

class hoomd.md.alchemy.pair.AlchemicalDOFStore(name, pair_instance, dof_cls)

Bases: Mapping

A read-only mapping of alchemical degrees of freedom accessed by type.

The class acts as a cache so once an alchemical DOF is queried it is returned and not recreated when queried again.

__contains__(key)

Return whether the key is in the mapping.

__getitem__(key)

Get the alchemical degree of freedom for the given type pair.

__iter__()

Iterate over keys.

__len__()

Get the length of the mapping.