Did I find the right examples for you? yes no

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

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 = CalibrationPolynomial('Energy', 'eV', (-2.255, 0.677, 0.134, -0.018))
 

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 = CalibrationPolynomialXMLHandler(1.0)
 
        self.obj = CalibrationPolynomial('Energy', 'eV', (-2.225, 0.677, 0.134, -0.018))
 
        source = u'<Calibration Class="Polynomial"><Quantity>Energy</Quantity><Unit>eV</Unit><Coefficients DataType="array:float" Count="4">-2.225, 0.677, 0.134, -0.018</Coefficients></Calibration>'