src/amuse/datamodel/particles.py
def empty_copy(self):
        """
        Creates a new in memory set and copies the particles to it.
        The attributes and values are not copied.The history
        of the set is not copied over.

        >>> from amuse.datamodel import Particles
        >>> from amuse.units import units
        >>> original = Particles(2)
        >>> original.mass = 0 | units.m
        >>> print hasattr(original, "mass")
        True
        >>> print len(original)
        2
        >>> copy = original.empty_copy()
        >>> print hasattr(copy, "mass")
        False
        >>> print len(copy)
        2

        """
        keys = self.get_all_keys_in_store()
        result = Particles()
        result.add_particles_to_store(keys, [],[])
        return result

        Creates a new in memory set and copies the particles to it.
        The attributes and values are not copied.The history
        of the set is not copied over.

        >>> from amuse.datamodel import Particles
        >>> from amuse.units import units
        >>> original = Particles(2)
        >>> original.mass = 0 | units.m
        >>> print hasattr(original, "mass")
        True
        >>> print len(original)
        2
        >>> copy = original.empty_copy()
        >>> print hasattr(copy, "mass")
        False
        >>> print len(copy)
        2

        
Creates a new in memory set and copies the particles to it.
The attributes and values are not copied.The history
of the set is not copied over.


Creates a new in memory set and copies the particles to it . The attributes and values are not copied . The history of the set is not copied over .
def empty_copy(self):
        keys = self.get_all_keys_in_store()
        result = Particles()
        result.add_particles_to_store(keys, [],[])
        return result
def empty_copy ( self ) : keys = self . get_all_keys_in_store ( ) result = Particles ( ) result . add_particles_to_store ( keys , [ ] , [ ] ) return result
Creates a new in memory set and copies the particles to it.
Creates a new in memory set and copies the particles to it .
"""
        Creates a new in memory set and copies the particles to it.
        The attributes and values are not copied.The history
        of the set is not copied over.

        >>> from amuse.datamodel import Particles
        >>> from amuse.units import units
        >>> original = Particles(2)
        >>> original.mass = 0 | units.m
        >>> print hasattr(original, "mass")
        True
        >>> print len(original)
        2
        >>> copy = original.empty_copy()
        >>> print hasattr(copy, "mass")
        False
        >>> print len(copy)
        2

        """
self