def atoms_inside(self, atoms):
        """Decides which atoms are inside the body (see Body class)."""

        atoms_inside_body = Polyhedron.atoms_inside(self, atoms)
        atoms_inside_body *= self.periodicity.mask_unique(
            atoms - self.shift_vector, atoms_inside_body)
        return atoms_inside_body
Beispiel #2
0
 def atoms_inside(self, atoms):
     """Decides which atoms are inside the body (see Body class)."""
     
     atoms_inside_body = Polyhedron.atoms_inside(self, atoms)
     atoms_inside_body *= self.periodicity.mask_unique(
         atoms - self.shift_vector, atoms_inside_body)
     return atoms_inside_body