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_detector.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.detector import \
    (PHA_MODE_DIFFERENTIAL, SIGNAL_TYPE_ELS, COLLECTION_MODE_PARALLEL,
     XEDS_TECHNOLOGY_SILI)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.pha = PulseHeightAnalyser(1750, 32, 0.5, 4.5, PHA_MODE_DIFFERENTIAL)
 
    def testpulse_height_analyser(self):
        pha = PulseHeightAnalyser(1700.0, 16, 0.7, 9.3, PHA_MODE_DIFFERENTIAL)
        self.det.pulse_height_analyser = pha
        self.assertAlmostEqual(1700.0, self.det.pulse_height_analyser.bias, 4)
        self.assertAlmostEqual(16.0, self.det.pulse_height_analyser.gain, 4)
    def testpickle(self):
        self.det.dispersion_element = 'TAP'
        self.det.crystal_2d = 8.742
        self.det.rowland_circle_diameter = 140.0
        pha = PulseHeightAnalyser(1700.0, 16, 0.7, 9.3, PHA_MODE_DIFFERENTIAL)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.detector import \
    (PHA_MODE_DIFFERENTIAL, SIGNAL_TYPE_ELS, COLLECTION_MODE_PARALLEL,
     XEDS_TECHNOLOGY_SILI)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        pha = PulseHeightAnalyser(1750, 32, 0.5, 4.5, PHA_MODE_DIFFERENTIAL)
        self.obj = DetectorSpectrometerWDS(4096, calibration, COLLECTION_MODE_PARALLEL,
                                           'TAP', 8.742, 140.0, pha)