grogupy.physics.MagneticEntityList

class grogupy.physics.MagneticEntityList(magnetic_entities: None | list[MagneticEntity] | ndarray[Any, dtype[_ScalarType_co]] = None)[source]

List of MagneticEntities.

It supports easier attribute access across the MagneticEntities in the list.

__init__(magnetic_entities: None | list[MagneticEntity] | ndarray[Any, dtype[_ScalarType_co]] = None)[source]

Methods

__init__([magnetic_entities])

append(item)

Appends to the magnetic entity list.

toarray()

Returns a numpy array from the underlying data.

tolist()

Returns a list from the underlying data.