grogupy.physics.PairList
- class grogupy.physics.PairList(pairs: None | list[Pair] | ndarray[Any, dtype[_ScalarType_co]] = None)[source]
List of Pairs.
It supports easier attribute access across the Pairs in the list.
Methods
__init__([pairs])append(item)Appends to the pair list.
toarray()Returns a numpy array from the underlying data.
tolist()Returns a list from the underlying data.