deltakit.core.decoding_graphs.EdgeRecord#

class deltakit.core.decoding_graphs.EdgeRecord(p_err: float = 0.0, **kwargs: Any)#

Bases: UserDict[str, Any]

Dictionary for recording information about an edge. String attributes for arbitrary values. Error probability given as special data that is always defined.

Parameters:

p_err (float, optional) – Probability of the error mechanism, by default 0.0.

Methods#

EdgeRecord.clear

EdgeRecord.copy

EdgeRecord.from_dict

Create a EdgeRecord from a given property dict of optional values.

EdgeRecord.from_loglikelihood

Create a EdgeRecord from a loglikelihood weight rather than a p_err.

EdgeRecord.fromkeys

EdgeRecord.get

EdgeRecord.items

EdgeRecord.keys

EdgeRecord.pop

If key is not found, d is returned if given, otherwise KeyError is raised.

EdgeRecord.popitem

as a 2-tuple; but raise KeyError if D is empty.

EdgeRecord.setdefault

EdgeRecord.update

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

EdgeRecord.values