Exemplo n.º 1
0
 def test_Switching(self):
     "Test that a Switching can be converted to a Nuisance"
     n = Switching.setup_particle(IMP.Particle(self.m))
     n.set_lower(-10)
     n.set_upper(10)
     self.assertTrue(Nuisance.get_is_setup(n.get_particle()))
     self.assertFalse(Switching.get_is_setup(n.get_particle()))
Exemplo n.º 2
0
 def test_Switching(self):
     "Test that a Switching can be converted to a Nuisance"
     n = Switching.setup_particle(IMP.kernel.Particle(self.m))
     n.set_lower(-10)
     n.set_upper(10)
     self.assertTrue(Nuisance.get_is_setup(n.get_particle()))
     self.assertFalse(Switching.get_is_setup(n.get_particle()))
Exemplo n.º 3
0
 def test_Nuisance(self):
     "Test that a Nuisance can be converted to a Switching"
     n = Nuisance.setup_particle(IMP.Particle(self.m), 0.5)
     n.set_lower(0)
     n.set_upper(1)
     self.assertTrue(Switching.get_is_setup(n.get_particle()))
Exemplo n.º 4
0
 def test_Nuisance(self):
     "Test that a Nuisance can be converted to a Switching"
     n = Nuisance.setup_particle(IMP.kernel.Particle(self.m), 0.5)
     n.set_lower(0)
     n.set_upper(1)
     self.assertTrue(Switching.get_is_setup(n.get_particle()))