deltakit.core.decoding_graphs.DetectorRecord#

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

Bases: UserDict

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

D.clear() -> None.

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

D.get(k[,d]) -> D[k] if k in D, else d.

DetectorRecord.items

D.items() -> a set-like object providing a view on D's items

DetectorRecord.keys

D.keys() -> a set-like object providing a view on D's keys

DetectorRecord.pop

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

DetectorRecord.popitem

D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.

DetectorRecord.setdefault

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

DetectorRecord.update

D.update([E, ]**F) -> None.

DetectorRecord.values

D.values() -> an object providing a view on D's values