Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/acquisition.py   pyHMSA(Download)
    def convert(self, obj):
        return self._convert_parameter(obj, 'Acquisition', {'Class': 'Point'})
 
class AcquisitionMultipointXMLHandler(_XMLHandler):
 
    def convert(self, obj):
        element = self._convert_parameter(obj, 'Acquisition', {'Class': 'Multipoint'})
 
        value = np.uint32(len(obj.positions))
        attrib = type('MockAttribute', (object,), {'xmlname': 'PointCount'})

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/detector.py   pyHMSA(Download)
    def convert(self, obj):
        element = self._convert_parameter(obj, 'Window')
 
        for layer in obj.layers:
            value = layer.thickness
    def convert(self, obj):
        return self._convert_parameter(obj, 'Detector', {'Class': 'Camera'})
 
class _DetectorSpectrometerXMLHandler(_XMLHandler):
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/calibration.py   pyHMSA(Download)
    def convert(self, obj):
        return self._convert_parameter(obj, 'Calibration', {'Class': 'Constant'})
 
class CalibrationLinearXMLHandler(_XMLHandler):
 
    def convert(self, obj):
        return self._convert_parameter(obj, 'Calibration', {'Class': 'Linear'})
 
class CalibrationPolynomialXMLHandler(_XMLHandler):
 
    def convert(self, obj):
        return self._convert_parameter(obj, 'Calibration', {'Class': 'Polynomial'})
 
class CalibrationExplicitXMLHandler(_XMLHandler):
 
    def convert(self, obj):
        return self._convert_parameter(obj, 'Calibration', {'Class': 'Explicit'})
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/probe.py   pyHMSA(Download)
    def convert(self, obj):
        return self._convert_parameter(obj, 'Probe', {'Class': 'EM'})
 
class ProbeTEMXMLHandler(_XMLHandler):
 
    def convert(self, obj):
        return self._convert_parameter(obj, 'Probe', {'Class': 'TEM'})
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/elementalid.py   pyHMSA(Download)
    def convert(self, obj):
        element = self._convert_parameter(obj, 'ElementalID')
        element.find('Element').set('Symbol', obj.symbol) # manually add symbol
        return element
 
    def convert(self, obj):
        element = self._convert_parameter(obj, 'ElementalID', {'Class': 'X-ray'})
        element.find('Element').set('Symbol', obj.symbol) # manually add symbol
        return element
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/region.py   pyHMSA(Download)
    def convert(self, obj):
        element = self._convert_parameter(obj, 'RegionOfInterest')
 
        value = obj.start_channel
        attrib = type('MockAttribute', (object,), {'xmlname': 'StartChannel'})

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/specimenposition.py   pyHMSA(Download)
    def convert(self, obj):
        return self._convert_parameter(obj, 'SpecimenPosition')

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/instrument.py   pyHMSA(Download)
    def convert(self, obj):
        return self._convert_parameter(obj, 'Instrument')
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/header.py   pyHMSA(Download)
    def convert(self, obj):
        element = self._convert_parameter(obj, 'Header')
 
        for name, value in obj._extras.items():
            subelement = etree.Element(name)