pydft_qmmm.system.variable

Data container classes for implementing the observer pattern.

Functions

observed_class(*args, **kwargs)

Modify a class to have protected observed properties.

pydft_qmmm.system.variable.observed_class(*args, **kwargs)[source]

Modify a class to have protected observed properties.

Parameters:
  • args – An optional class to modify.

  • kwargs – Optional dataclass settings.

Returns:

Either the modified dataclass with added property getters and setters, or the function to generate the modified dataclass.

Classes

ArrayValue(_array, _key)

A wrapper for single values from observed arrays.

ObservedArray(array)

A data container for arrays implementing the observer pattern.