deltakit.core.decoding_graphs.DetectorRecord#

class deltakit.core.decoding_graphs.DetectorRecord(spatial_coord: tuple[float | int, ...] = (), time: int = 0, **kwargs: Any)#

Bases: UserDict[str, Any]

Dictionary for recording information about a detector. String attributes for arbitrary values. Coordinate and time given as special data that is always defined.

Parameters:
  • spatial_coord (Tuple[int, ...], optional) – Variadic spatial coordinate of this detector, by default ().

  • time (int, optional) – Time coordinate of this detector, by default 0.

Methods#

DetectorRecord.clear

DetectorRecord.copy

DetectorRecord.from_dict

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

DetectorRecord.from_sequence

Create a DetectorRecord given a sequence if floats or ints.

DetectorRecord.fromkeys

DetectorRecord.get

DetectorRecord.items

DetectorRecord.keys

DetectorRecord.pop

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

DetectorRecord.popitem

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

DetectorRecord.setdefault

DetectorRecord.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

DetectorRecord.values