From 05be8a959d821d86d1e9216efc2d8b6b687713d7 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sat, 12 Sep 2015 18:27:42 +0100 Subject: [PATCH] Update rv_transformation_tests.py --- GPy/testing/rv_transformation_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPy/testing/rv_transformation_tests.py b/GPy/testing/rv_transformation_tests.py index 083bb197..77f904d9 100644 --- a/GPy/testing/rv_transformation_tests.py +++ b/GPy/testing/rv_transformation_tests.py @@ -13,8 +13,8 @@ class TestModel(GPy.core.Model): """ A simple GPy model with one parameter. """ - def __init__(self): - GPy.core.Model.__init__(self, 'test_model') + def __init__(self, name): + GPy.core.Model.__init__(self, name) theta = GPy.core.Param('theta', 1.) self.link_parameter(theta) @@ -25,7 +25,7 @@ class TestModel(GPy.core.Model): class RVTransformationTestCase(unittest.TestCase): def _test_trans(self, trans): - m = TestModel() + m = TestModel(trans.name) prior = GPy.priors.LogGaussian(.5, 0.1) m.theta.set_prior(prior) m.theta.unconstrain()