Exemplo n.º 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)
Exemplo n.º 2
0
 def setUp(self):
     self.T = 2.
     self.met = Metropolis(self.T)
Exemplo n.º 3
0
 def setup_method(self):
     self.T = 2.
     self.met = Metropolis(self.T)
Exemplo n.º 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)