Commit 8ed66b72 authored by Domanski, Marian M.'s avatar Domanski, Marian M.
Browse files

use array method for num_eggs sum

parent fc194bdd
......@@ -304,7 +304,7 @@ class FullResults(Results):
particles_in_domain = positions_at_time[:, 0] <= self._domain_length
new_config = self.configuration()
new_config['num_eggs'] = sum(x for x in particles_in_domain)
new_config['num_eggs'] = str(particles_in_domain.sum())
if np.any(particles_in_domain):
cls = self.__class__
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment