src/amuse/datamodel/particles.py
def remove_particles(self, particles):
        """
        Removes particles from the supplied set from this set.

        :parameter particles: set of particles to remove from this set

        >>> particles1 = Particles(2)
        >>> particles1.x = [1.0, 2.0] | units.m
        >>> particles2 = Particles()
        >>> particles2.add_particle(particles1[0]) # doctest:+ELLIPSIS
        <amuse.datamodel.particles.Particle object at ...>
        >>> particles1.remove_particles(particles2)
        >>> print len(particles1)
        1
        >>> print particles1.x
        [2.0] m
        """
        
        if len(particles) == 0:
            return
        
        indices = self.get_indices_of_keys(particles.get_all_keys_in_store())
        self.remove_particles_from_store(indices)

        Removes particles from the supplied set from this set.

        :parameter particles: set of particles to remove from this set

        >>> particles1 = Particles(2)
        >>> particles1.x = [1.0, 2.0] | units.m
        >>> particles2 = Particles()
        >>> particles2.add_particle(particles1[0]) # doctest:+ELLIPSIS
        <amuse.datamodel.particles.Particle object at ...>
        >>> particles1.remove_particles(particles2)
        >>> print len(particles1)
        1
        >>> print particles1.x
        [2.0] m
        
Removes particles from the supplied set from this set.
Removes particles from the supplied set from this set .
def remove_particles(self, particles):
        if len(particles) == 0:
            return
        indices = self.get_indices_of_keys(particles.get_all_keys_in_store())
        self.remove_particles_from_store(indices)
def remove_particles ( self , particles ) : if len ( particles ) == 0 : return indices = self . get_indices_of_keys ( particles . get_all_keys_in_store ( ) ) self . remove_particles_from_store ( indices )
Removes particles from the supplied set from this set.
Removes particles from the supplied set from this set .
"""
        Removes particles from the supplied set from this set.

        :parameter particles: set of particles to remove from this set

        >>> particles1 = Particles(2)
        >>> particles1.x = [1.0, 2.0] | units.m
        >>> particles2 = Particles()
        >>> particles2.add_particle(particles1[0]) # doctest:+ELLIPSIS
        <amuse.datamodel.particles.Particle object at ...>
        >>> particles1.remove_particles(particles2)
        >>> print len(particles1)
        1
        >>> print particles1.x
        [2.0] m
        """
self
particles
set of particles to remove from this set
>>> particles1 = Particles(2)
>>> particles1.x = [1.0, 2.0] | units.m
>>> particles2 = Particles()
>>> particles2.add_particle(particles1[0]) # doctest:+ELLIPSIS

>>> particles1.remove_particles(particles2)
>>> print len(particles1)
1
>>> print particles1.x
[2.0] m
set of particles to remove from this set >>> particles1 = Particles ( 2 ) >>> particles1 . x = [ 1 . 0 2 . 0 ] | units . m >>> particles2 = Particles () >>> particles2 . add_particle ( particles1 [ 0 ] ) # doctest : + ELLIPSIS >>> particles1 . remove_particles ( particles2 ) >>> print len ( particles1 ) 1 >>> print particles1 . x [ 2 . 0 ] m