コード例 #1
0
ファイル: uncertainty.py プロジェクト: reflectometry/osrefl
 def __itruediv__(self, other):
     if isinstance(other, Uncertainty):
         self.x, self.variance = err1d.div_inplace(self.x, self.variance, other.x, other.variance)
     else:
         self.x /= other
         self.variance /= other ** 2
     return self
コード例 #2
0
ファイル: uncertainty.py プロジェクト: pkienzle/sasview
 def __itruediv__(self, other):
     if isinstance(other, Uncertainty):
         self.x,self.variance \
             = err1d.div_inplace(self.x,self.variance,other.x,other.variance)
     else:
         self.x /= other
         self.variance /= other**2
     return self
コード例 #3
0
ファイル: uncertainty.py プロジェクト: scattering/dataflow
 def __itruediv__(self, other):
     if isinstance(other,Measurement):
         self.x,self.variance \
             = err1d.div_inplace(self.x,self.variance,other.x,other.variance)
     else:
         self.x /= other
         self.variance /= other**2
     return self