Exemple #1
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)
Exemple #2
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)