Did I find the right examples for you? yes no

All Samples(15)  |  Call(10)  |  Derive(0)  |  Import(5)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/calibration.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.calibration import \
    (CalibrationConstant, CalibrationLinear,
     CalibrationPolynomial, CalibrationExplicit)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_calibration.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.calibration import \
    (CalibrationConstant, CalibrationLinear,
     CalibrationPolynomial, CalibrationExplicit)
        self.h = CalibrationConstantXMLHandler(1.0)
 
        self.obj = CalibrationConstant('Energy', 'eV', -237.098251)
 
        source = u'<Calibration Class="Constant"><Quantity>Energy</Quantity><Unit>eV</Unit><Value DataType="float">-237.098251</Value></Calibration>'

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_calibration.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.calibration import \
    (_Calibration, CalibrationConstant, CalibrationLinear,
     CalibrationPolynomial, CalibrationExplicit)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.cal = CalibrationConstant('Energy', 'eV', -237.098251)
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
     DetectorSpectrometerWDS, DetectorSpectrometerXEDS,
     PulseHeightAnalyser, Window)
from pyhmsa.spec.condition.calibration import CalibrationConstant
from pyhmsa.fileformat.xmlhandler.condition.detector import \
    (WindowXMLHandler,
        self.h = DetectorSpectrometerXMLHandler(1.0)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.obj = DetectorSpectrometer(4096, calibration, COLLECTION_MODE_PARALLEL)
 
        self.h = DetectorSpectrometerCLXMLHandler(1.0)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.obj = DetectorSpectrometerCL(4096, calibration, 800.0)
 
        self.h = DetectorSpectrometerWDSXMLHandler(1.0)
 
        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,
        self.h = DetectorSpectrometerXEDSXMLHandler(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)

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_detector.py   pyHMSA(Download)
     _Detector, DetectorCamera, DetectorSpectrometer,
     DetectorSpectrometerCL, DetectorSpectrometerWDS, DetectorSpectrometerXEDS)
from pyhmsa.spec.condition.calibration import CalibrationConstant
 
# Globals and constants variables.
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.det = DetectorSpectrometer(4096, calibration)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.det = DetectorSpectrometerCL(4096, calibration)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.det = DetectorSpectrometerWDS(4096, calibration)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        calibration = CalibrationConstant('Energy', 'eV', -237.098251)
        self.det = DetectorSpectrometerXEDS(4096, calibration)