Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.detector import \
    (COLLECTION_MODE_PARALLEL, COLLECTION_MODE_SERIAL,
     XEDS_TECHNOLOGY_GE, XEDS_TECHNOLOGY_SILI, XEDS_TECHNOLOGY_SDD,
     EMSA_ELS_DETECTOR_SERIAL: COLLECTION_MODE_SERIAL}
_EDSDET_TO_XEDS_TECHNOLOGY = \
    {EMSA_EDS_DETECTOR_SIBEW: XEDS_TECHNOLOGY_SILI,
     EMSA_EDS_DETECTOR_SIUTW: XEDS_TECHNOLOGY_SILI,
     EMSA_EDS_DETECTOR_SIWLS: XEDS_TECHNOLOGY_SILI,

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 testtechnology(self):
        self.det.technology = XEDS_TECHNOLOGY_SILI
        self.assertEqual(XEDS_TECHNOLOGY_SILI, self.det.technology)
 
        self.assertRaises(ValueError, self.det.set_technology, 'ABC')
    def testpickle(self):
        self.det.technology = XEDS_TECHNOLOGY_SILI
        self.det.nominal_throughput = 180000
        self.det.time_constant = 11.1
        self.det.strobe_rate = 2000

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)
        self.obj = DetectorSpectrometerXEDS(4096, calibration, COLLECTION_MODE_PARALLEL,
                                            XEDS_TECHNOLOGY_SILI, 180000.0, 11.1, 2000.0)
        self.obj.window.append_layer('Al', 1.0)