Skip to content

lib

tergite_autocalibration.tools.sreg.lib

Classes:

Name Description
AttrDict

A dict accessed by attribute recursivly.

SRegistry

Simplified registry for read and write.

AttrDict

Bases: dict

A dict accessed by attribute recursivly.

d = AttrDict({'a': {'b': 1}}) d.a.b 1 Technically speaking, it is very tricky to inherit from dict when we override setitem. But I am a bit lazy. So keep an eye out when you are using AttrDict.

Methods:

Name Description
fresh

Go to the root registry to fresh which is not

load

load from file

readin

read in dict from file

fresh

fresh(keys: list, value)

Go to the root registry to fresh which is not necessary for all cases.

load

load(**kws)

load from file

readin

readin(**kws)

read in dict from file

SRegistry

SRegistry()

Bases: AttrDict

Simplified registry for read and write.

Methods:

Name Description
load

load from file

load

load(**kws)

load from file