Did I find the right examples for you? yes no

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
    (DetectorSpectrometer, DetectorSpectrometerXEDS, DetectorSpectrometerCL,
     Window)
from pyhmsa.spec.condition.calibration import CalibrationLinear
from pyhmsa.spec.datum.analysis import Analysis1D
 
        gain = keywords.getfloat('XPERCHAN')
        offset = keywords.getfloat('OFFSET')
        kwargs['calibration'] = CalibrationLinear(quantity, unit, gain, offset)
 
        kwargs['measurement_unit'] = keywords.get('yunits')

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/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 = CalibrationLinear('Energy', 'eV', 2.49985, -237.098251)
 

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 = CalibrationLinearXMLHandler(1.0)
 
        self.obj = CalibrationLinear('Energy', 'eV', 2.49985, -237.098251)
 
        source = u'<Calibration Class="Linear"><Quantity>Energy</Quantity><Unit>eV</Unit><Gain DataType="float">2.49985</Gain><Offset DataType="float">-237.098251</Offset></Calibration>'

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/exporter/test_emsa.py   pyHMSA(Download)
from pyhmsa.datafile import DataFile
from pyhmsa.spec.condition.detector import DetectorSpectrometerXEDS
from pyhmsa.spec.condition.calibration import CalibrationLinear
from pyhmsa.spec.condition.probe import ProbeEM
from pyhmsa.spec.datum.analysis import Analysis1D
        datafile.conditions['Probe0'] = probe
 
        calibration = CalibrationLinear('Energy', 'eV', 2.49985, -237.098251)
        detector = DetectorSpectrometerXEDS(4096, calibration,
                                            technology=XEDS_TECHNOLOGY_SDD,

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/test_datafile.py   pyHMSA(Download)
from pyhmsa.spec.condition.probe import ProbeEM
from pyhmsa.spec.condition.detector import DetectorSpectrometerXEDS
from pyhmsa.spec.condition.calibration import CalibrationLinear
from pyhmsa.type.language import langstr
 
        self.datafile.conditions['Probe0'] = probe
 
        calibration = CalibrationLinear('Energy', 'eV', 2.49985, -237.098251)
        detector = DetectorSpectrometerXEDS(4096, calibration,
                                            technology=XEDS_TECHNOLOGY_SDD,