Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/detector.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.detector import \
    (DetectorCamera, DetectorSpectrometer, DetectorSpectrometerCL,
     DetectorSpectrometerWDS, DetectorSpectrometerXEDS, Window, WindowLayer)
            material = subelement.attrib['Material']
            thickness = self._parse_numerical_attribute(subelement)
            obj.layers.append(WindowLayer(material, thickness))
 
        return obj

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_detector.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.detector import \
    (PulseHeightAnalyser, WindowLayer, Window,
     _Detector, DetectorCamera, DetectorSpectrometer,
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.layer = WindowLayer("Al", (100.0, 'nm'))
 
        self.assertEqual('um', self.window.layers[0].thickness.unit, 4)
 
        self.window.layers.append(WindowLayer('Be', 0.3))
        self.assertEqual(2, len(self.window.layers))
        self.assertEqual('Be', self.window.layers[1].material)