Maintenance scheduled for Thursday, September 24th at 15:00 MDT. Expected downtime <1 hour.

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

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__
......
Markdown is supported
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