pyiron.atomistics.structure.sparse_list module¶
-
class
pyiron.atomistics.structure.sparse_list.
SparseArray
(length=None, **qwargs)[source]¶ Bases:
object
Administrate object that consists of several sparse lists (tags) and full lists that have identical indices and length
- Parameters
**qwargs – dictionary containing lists and SparseLists (tags) (must have identical length)
-
class
pyiron.atomistics.structure.sparse_list.
SparseArrayElement
(**qwargs)[source]¶ Bases:
object
Single element of a SparseArray :param **qwargs:
-
class
pyiron.atomistics.structure.sparse_list.
SparseList
(sparse_list, default=None, length=None)[source]¶ Bases:
object
Object to represent a single sparse list Internal representation like a dict External representation like a list :param sparse_list: dict object with {index: val} :param default: default value for all elements not given by index in sparse_list :param length: length of the list