Ejemplo n.º 1
0
    def setWeights(self, weights):
        """Set atomic weights."""

        if self._n_atoms == 0:
            raise AttributeError('coordinates must be set first')
        self._weights = checkWeights(weights, self._n_atoms, None)
Ejemplo n.º 2
0
 def setWeights(self, weights):
     """Set atomic weights."""
     
     if self._n_atoms == 0:
         raise AttributeError('first set reference coordinates')
     self._weights = checkWeights(weights, self._n_atoms, None)
Ejemplo n.º 3
0
    def setWeights(self, weights):
        """Set atomic weights."""

        if self._n_atoms == 0:
            raise AttributeError('coordinates must be set first')
        self._weights = checkWeights(weights, self._n_atoms, None)