Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_probe.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.probe import GUN_TYPE_LAB6, LENS_MODE_IMAGE
 
class Test_Probe(unittest.TestCase):
    def testgun_type(self):
        self.probe.gun_type = GUN_TYPE_LAB6
        self.assertEqual(GUN_TYPE_LAB6, self.probe.gun_type)
        self.assertRaises(ValueError, self.probe.set_gun_type, 'ABC')
 
    def testpickle(self):
        self.probe.beam_current = 47.59
        self.probe.gun_type = GUN_TYPE_LAB6
        self.probe.emission_current = 12345
        self.probe.filament_current = 1.234

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_probe.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.probe import GUN_TYPE_LAB6, LENS_MODE_IMAGE
 
class TestProbeEMXMLHandler(unittest.TestCase):
        self.h = ProbeEMXMLHandler(1.0)
 
        self.obj = ProbeEM(15.0, 47.59, GUN_TYPE_LAB6, 12345.0, 1.234, 4200.0,
                           12345.0, 3.14e-6, 3.14e-10, 2500.0, 10.0)