parameters: (self, x, y, z)
docstring: Given the current set of coordinates, updates the values of this
          atom's coordinates, and any variables that may depend on it.
docstring_summary: Given the current set of coordinates, updates the values of this
          atom's coordinates, and any variables that may depend on it.
docstring_tokens: Given the current set of coordinates updates the values of this atom s coordinates and any variables that may depend on it .
function: def set_coordinates(self, x, y, z):
          """Given the current set of coordinates, updates the values of this
          atom's coordinates, and any variables that may depend on it.
  
          """
          self.coordinates[0] = 0.0 if math.fabs(x) < 1.0E-14 else x
          self.coordinates[1] = 0.0 if math.fabs(y) < 1.0E-14 else y
          self.coordinates[2] = 0.0 if math.fabs(z) < 1.0E-14 else z
  
          if self.rto != None:
              if not self.rto.is_computed():
                  raise ValidationError("Coordinates have been set in the wrong order")
              self.rval.rset(self.r(self.coordinates, self.rto.compute()))
  
          if self.ato != None:
              if not self.ato.is_computed():
                  raise ValidationError("Coordinates have been set in the wrong order")
              aval = self.a(self.coordinates, self.rto.compute(), self.ato.compute())
              # Noise creeps in for linear molecules. Force linearity, if it is close enough.
              val = aval * 180.0 / math.pi
              self.aval.rset(val)
  
          if self.dto != None:
              if not self.dto.is_computed():
                  raise ValidationError("Coordinates have been set in the wrong order")
              val = self.d(self.coordinates, self.rto.compute(), self.ato.compute(), self.dto.compute())
              # Check for NaN, and don't update if we find one
              # what is this? proper py traslation?
              if val == val:
                  self.dval.rset(val * 180.0 / math.pi)
  
          self.computed = True
function_tokens: def set_coordinates ( self , x , y , z ) : self . coordinates [ 0 ] = 0.0 if math . fabs ( x ) < 1.0E-14 else x self . coordinates [ 1 ] = 0.0 if math . fabs ( y ) < 1.0E-14 else y self . coordinates [ 2 ] = 0.0 if math . fabs ( z ) < 1.0E-14 else z if self . rto != None : if not self . rto . is_computed ( ) : raise ValidationError ( "Coordinates have been set in the wrong order" ) self . rval . rset ( self . r ( self . coordinates , self . rto . compute ( ) ) ) if self . ato != None : if not self . ato . is_computed ( ) : raise ValidationError ( "Coordinates have been set in the wrong order" ) aval = self . a ( self . coordinates , self . rto . compute ( ) , self . ato . compute ( ) ) # Noise creeps in for linear molecules. Force linearity, if it is close enough. val = aval * 180.0 / math . pi self . aval . rset ( val ) if self . dto != None : if not self . dto . is_computed ( ) : raise ValidationError ( "Coordinates have been set in the wrong order" ) val = self . d ( self . coordinates , self . rto . compute ( ) , self . ato . compute ( ) , self . dto . compute ( ) ) # Check for NaN, and don't update if we find one # what is this? proper py traslation? if val == val : self . dval . rset ( val * 180.0 / math . pi ) self . computed = True