コード例 #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)
コード例 #2
0
ファイル: trajbase.py プロジェクト: crosvera/ProDy
 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)
コード例 #3
0
ファイル: trajbase.py プロジェクト: anindita85/ProDy
    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)