wntr.utils.disjoint_mapping#

A set of utility classes that is similar to the ‘registry’ objects in the wntr.network class, but more general, and therefore usable for other extensions, such as multi-species water quality models.

Classes

DisjointMapping

A mapping with keys that are also divided into disjoint groups of keys.

DisjointMappingGroup

A dictionary that checks a namespace for existing entries.

Exceptions

KeyExistsError

The name already exists in the model

WrongGroupError

The key exists but is in a different disjoint group