src/amuse/datamodel/particles.py
def remove_particles_from_store(self, indices):
        """
        Removes particles from the subset, and removes particles
        from the super set
        """

        indices_to_remove = set(indices)

        index = 0
        index_in_local_list = []
        for x in self._private.indices:
            if x in indices_to_remove:
                index_in_local_list.append(index)
            index += 1
        set_to_remove = set(self._private.keys[index_in_local_list])
        self._private.keys = numpy.delete(self._private.keys,index_in_local_list)
        self._private.set_of_keys -= set_to_remove
        self._private.particles.remove_particles_from_store(indices)

        self._private.version = -1
        self._private.indices = None

        Removes particles from the subset, and removes particles
        from the super set
        
Removes particles from the subset, and removes particles
from the super set
Removes particles from the subset and removes particles from the super set
def remove_particles_from_store(self, indices):
        indices_to_remove = set(indices)
        index = 0
        index_in_local_list = []
        for x in self._private.indices:
            if x in indices_to_remove:
                index_in_local_list.append(index)
            index += 1
        set_to_remove = set(self._private.keys[index_in_local_list])
        self._private.keys = numpy.delete(self._private.keys,index_in_local_list)
        self._private.set_of_keys -= set_to_remove
        self._private.particles.remove_particles_from_store(indices)
        self._private.version = -1
        self._private.indices = None
def remove_particles_from_store ( self , indices ) : indices_to_remove = set ( indices ) index = 0 index_in_local_list = [ ] for x in self . _private . indices : if x in indices_to_remove : index_in_local_list . append ( index ) index += 1 set_to_remove = set ( self . _private . keys [ index_in_local_list ] ) self . _private . keys = numpy . delete ( self . _private . keys , index_in_local_list ) self . _private . set_of_keys -= set_to_remove self . _private . particles . remove_particles_from_store ( indices ) self . _private . version = - 1 self . _private . indices = None
Removes particles from the subset, and removes particles
from the super set
Removes particles from the subset and removes particles from the super set
"""
        Removes particles from the subset, and removes particles
        from the super set
        """
self
indices