deltakit.core.decoding_graphs.DetectorRecord#
- class deltakit.core.decoding_graphs.DetectorRecord(spatial_coord: Tuple[float | int, ...] = (), time: int = 0, **kwargs)#
Bases:
UserDictDictionary 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#
D.clear() -> None. |
|
Create a DetectorRecord from a given property dict of optional values. |
|
Create a DetectorRecord given a sequence if floats or ints. |
|
D.get(k[,d]) -> D[k] if k in D, else d. |
|
D.items() -> a set-like object providing a view on D's items |
|
D.keys() -> a set-like object providing a view on D's keys |
|
D.pop(k[,d]) -> v, remove specified key and return the corresponding value. |
|
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty. |
|
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D |
|
D.update([E, ]**F) -> None. |
|
D.values() -> an object providing a view on D's values |