Skip to content
Snippets Groups Projects
Commit 164a4af0 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

adding __len__ to dst class

parent 55f46896
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ class dst:
self._data = numpy.zeros((self.Np, 6))
self.mass = mass
def __len__(self):
return self.Np
def append(self, x=0.0, xp=0.0, y=0.0, yp=0.0, E=0.0, phi=0.0):
"""
Append one particle to the distribution
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment