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