def test_constraint_str_for_constrained_width(self):
        test_profile = GaussianMassProfile([2, 5, 7], 16)

        self.assertEqual("2.000000 < Width < 7.000000,Intensity > 0.0",
                         test_profile.create_constraint_str())
        # and with prefix
        self.assertEqual("2.000000 < f0.Width < 7.000000,f0.Intensity > 0.0",
                         test_profile.create_constraint_str("f0."))
Beispiel #2
0
    def test_constraint_str_for_constrained_width(self):
        test_profile = GaussianMassProfile([2,5,7], 16)

        self.assertEqual("2.000000 < Width < 7.000000,Intensity > 0.0", test_profile.create_constraint_str())
        # and with prefix
        self.assertEqual("2.000000 < f0.Width < 7.000000,f0.Intensity > 0.0", test_profile.create_constraint_str("f0."))
Beispiel #3
0
    def test_constraint_str_is_only_intensity_for_fixed_width(self):
        test_profile = GaussianMassProfile(10, 16)

        self.assertEqual("Intensity > 0.0", test_profile.create_constraint_str())