Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/acquisition.py   pyHMSA(Download)
 
        subelement = element.find('PointCount')
        count = self._parse_numerical_attribute(subelement)
        assert len(obj.positions) == count
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/region.py   pyHMSA(Download)
        if subelement is None:
            raise ValueError('Element StartChannel is missing')
        start = self._parse_numerical_attribute(subelement)
 
        subelement = element.find('EndChannel')
        if subelement is None:
            raise ValueError('Element EndChannel is missing')
        end = self._parse_numerical_attribute(subelement)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/datum/datum.py   pyHMSA(Download)
    def _parse_data_offset(self, element):
        subelement = element.find('DataOffset')
        if subelement is None:
            raise ValueError('Element DataOffset is missing')
        return self._parse_numerical_attribute(subelement)
    def _parse_data_length(self, element):
        subelement = element.find('DataLength')
        if subelement is None:
            raise ValueError('Element DataLength is missing')
        return self._parse_numerical_attribute(subelement)
        for subelement in element.findall('DatumDimensions/Dimension'):
            key = subelement.get('Name')
            value = self._parse_numerical_attribute(subelement)
            dimensions[key] = value
 
        for subelement in element.findall('CollectionDimensions/Dimension'):
            key = subelement.get('Name')
            value = self._parse_numerical_attribute(subelement)
            dimensions[key] = value
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/detector.py   pyHMSA(Download)
        for subelement in element.findall('Layer'):
            material = subelement.attrib['Material']
            thickness = self._parse_numerical_attribute(subelement)
            obj.layers.append(WindowLayer(material, thickness))
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/composition.py   pyHMSA(Download)
        for subelement in element.findall('Element'):
            z = int(subelement.attrib['Z'])
            value = self._parse_numerical_attribute(subelement)
            units.append(value.unit)
            tmpcomposition.setdefault(z, value)