SourceMap

class pypagate.source.SourceMap(terms: dict[str, Number])

Bases: object

A collection of Terms (with starting values) where Terms can be updated with the listen method.

Methods Summary

listen(terms)

Take in a new set of values and update them all.

Methods Documentation

listen(terms: dict[str, Number])

Take in a new set of values and update them all.

Parameters:

terms – Dictionary of terms to take in and “listen” too. These will then update the values in self.