Beispiel #1
0
	def test_minSigEnerg_1(self):
		'''
		Test of common energy of two exact envelopes
		'''
		envelope = genericEnvelope(sigma , time , 11 , 0)[0]
		energy   = minSigEnerg(sigma , envelope , density , time , 11)
		energy   = float("{0:.2f}".format(energy))
		self.assertEqual(energy , density)
    def test_minSigEnerg_2(self):
        """
		Test of common energy of two completely different envelopes
		"""
        envelope = np.zeros(time.shape)
        energy = minSigEnerg(sigma, envelope, density, time, 11)
        energy = float("{0:.2f}".format(energy))
        self.assertEqual(energy, 1 - density)
Beispiel #3
0
	def test_minSigEnerg_2(self):
		'''
		Test of common energy of two completely different envelopes
		'''
		envelope = np.zeros(time.shape)
		energy   = minSigEnerg(sigma , envelope , density , time , 11)
		energy   = float("{0:.2f}".format(energy))
		self.assertEqual(energy , 1-density)
    def test_minSigEnerg_1(self):
        """
		Test of common energy of two exact envelopes
		"""
        envelope = genericEnvelope(sigma, time, 11, 0)[0]
        energy = minSigEnerg(sigma, envelope, density, time, 11)
        energy = float("{0:.2f}".format(energy))
        self.assertEqual(energy, density)