def filter_active_particles(particles):
    """Filter active particles from particles dict."""
    return {particle_number: particle
            for particle_number, particle in particles.items()
            if particle['active']}