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,
 
_ELSDET_TO_COLLECTION_MODE = \
    {EMSA_ELS_DETECTOR_PARALL: COLLECTION_MODE_PARALLEL,
     EMSA_ELS_DETECTOR_SERIAL: COLLECTION_MODE_SERIAL}
_EDSDET_TO_XEDS_TECHNOLOGY = \

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 testcollection_mode(self):
        self.det.collection_mode = COLLECTION_MODE_PARALLEL
        self.assertEqual(COLLECTION_MODE_PARALLEL, self.det.collection_mode)
 
        self.assertRaises(ValueError, self.det.set_collection_mode, 'ABC')
 
    def testpickle(self):
        self.det.collection_mode = COLLECTION_MODE_PARALLEL

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 = DetectorSpectrometer(4096, calibration, COLLECTION_MODE_PARALLEL)
 
        source = '<Detector Class="Spectrometer"><ChannelCount DataType="uint32">4096</ChannelCount><Calibration Class="Constant"><Quantity>Energy</Quantity><Unit>eV</Unit><Value DataType="float">-237.098251</Value></Calibration><CollectionMode>Parallel</CollectionMode></Detector>'
        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)
        self.obj.window.append_layer('Al', 1.0)
 
        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)