AtomList#
- class atompy.physics.AtomList(initlist=None)[source]#
Wrapper for Python lists only containing
AtomMethods
append(item)S.append(value) -- append value to the end of the sequence
charges()Retrieve all charges of particles in the list.
clear()copy()count(value)extend(other)S.extend(iterable) -- extend sequence by appending elements from the iterable
index(value, [start, [stop]])Raises ValueError if the value is not present.
insert(i, item)S.insert(index, value) -- insert value before index
masses()Retrieve all masses of particles in the list.
momenta()Retrieve all momenta of particles in the list.
names()Retrieve all names of particles in the list.
pop([index])Raise IndexError if list is empty or index is out of range.
Retrieve all positions of particles in the list.
remove(item)S.remove(value) -- remove first occurrence of value.
reverse()S.reverse() -- reverse IN PLACE
sort(*args, **kwds)speeds()Retrieve all speeds of particles in the list.