22def does_one_species_require_gather(sequence_of_steps):
25 Look through a sequence of tuples of species and steps and look whether any
26 species therein requires us to gather data.
29 some_particles_need_to_be_gathered =
False
30 for x
in sequence_of_steps:
31 current_species = x[0]
32 some_particles_need_to_be_gathered = (
33 some_particles_need_to_be_gathered
34 or current_species.generator.gather_particles
36 return some_particles_need_to_be_gathered