def test_calc_output_current_density(self):
     """
 calc_output_current_density matches standard values.
 """
     for data in self.std:
         TECL = TEC_Langmuir(data)
         # Set the following to a very low precision.
         self.assertAlmostEqual(1e4*data["output_current_density"]/TECL.calc_output_current_density(),\
           1,places=2)
 def test_calc_output_current_density(self):
   """
   calc_output_current_density matches standard values.
   """
   for data in self.std:
     TECL = TEC_Langmuir(data)
     # Set the following to a very low precision.
     self.assertAlmostEqual(1e4*data["output_current_density"]/TECL.calc_output_current_density(),\
       1,places=2)
 def test_calc_output_current_density_with_co_nea(self):
     """
 calc_output_current_density matches standard values when collector has NEA.
 """
     for data in self.std:
         data["Collector"]["nea"] = 0.1
         TECL = TEC_Langmuir(data)
         # Set the following to a very low precision.
         self.assertAlmostEqual(1e4*data["output_current_density"]/TECL.calc_output_current_density(),\
           1,places=2)
 def test_calc_output_current_density_with_co_nea(self):
   """
   calc_output_current_density matches standard values when collector has NEA.
   """
   for data in self.std:
     data["Collector"]["nea"] = 0.1
     TECL = TEC_Langmuir(data)
     # Set the following to a very low precision.
     self.assertAlmostEqual(1e4*data["output_current_density"]/TECL.calc_output_current_density(),\
       1,places=2)