Пример #1
0
 def test_GH7495(self):
     # an overflow in exp was producing a RuntimeWarning
     # create own object here in case someone changes self.T
     met = Metropolis(2)
     with np.errstate(over='raise'):
         met.accept_reject(0, 2000)
Пример #2
0
 def setUp(self):
     self.T = 2.
     self.met = Metropolis(self.T)
Пример #3
0
 def setup_method(self):
     self.T = 2.
     self.met = Metropolis(self.T)
Пример #4
0
 def test_GH7495(self):
     # an overflow in exp was producing a RuntimeWarning
     # create own object here in case someone changes self.T
     met = Metropolis(2)
     with np.errstate(over='raise'):
         met.accept_reject(0, 2000)