VarDict

VarDict#

class brainpy.math.VarDict(*args, **kwargs)[source]#

A dictionary of Variable, which is compatible with vars() operation in a BrainPyObject.

Actually, VarDict is a python dict.

VarDict is specifically designed to store Variable instances.

update(*args, **kwargs)[source]#

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

Return type:

VarDict