class graphicle.data.HelicityArray(graphicle.base.ArrayBase)[source]

Data structure containing helicity / polarisation values for particle set.

New in version 0.1.0.

Changed in version 0.2.0: Added internal numpy interfaces for greater interoperability.

Parameters:
data : sequence[int]

Data representing the spin polarisation of each particle in the point cloud.

Public members

__array__() ndarray[Any, dtype[int16]][source]

Numpy array representation of the data.

__repr__() str[source]

Return repr(self).

__iter__() Iterator[int][source]

Iterator exposing contained data as Python native.

property data : ndarray[Any, dtype[int16]][source]
copy() HelicityArray[source]

Copies the underlying data into a new HelicityArray instance.

__getitem__(key) HelicityArray[source]
__bool__() bool[source]

Truthy returns False if no elements, True otherwise.

__eq__(other: ArrayBase | ndarray[Any, dtype[Any]]) MaskArray[source]

Equality comparison.

__ne__(other: ArrayBase | ndarray[Any, dtype[Any]]) MaskArray[source]

Non equality comparison.

serialize() tuple[int, ...][source]

Provides a serialized version of the underlying data.

__setattr__(name, val)[source]

Method generated by attrs for class HelicityArray.

HelicityArray(...)[source]

Method generated by attrs for class HelicityArray.

dtype : dtype[source]
index(value, ...) integer -- return first index of value.[source]

Raises ValueError if the value is not present.

count(value) integer -- return number of occurrences of value[source]
classmethod __subclasshook__(C)[source]

Abstract classes can override this to customize issubclass().

HelicityArray = <bound method GenericAlias of <class 'collections.abc.Iterable'>>[source]
__lt__(other)[source]

Return self<value.

__le__(other)[source]

Return self<=value.

__gt__(other)[source]

Return self>value.

__ge__(other)[source]

Return self>=value.

__or__(other)[source]

Return self|value.

__ror__(other)[source]

Return value|self.


Last update: Jun 27, 2025