Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
from pyhmsa.spec.condition.acquisition import AcquisitionPoint
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.spec.condition.detector import \
    (DetectorSpectrometer, DetectorSpectrometerXEDS, DetectorSpectrometerCL,
     Window)
 
        if signal_type in [SIGNAL_TYPE_EDS, SIGNAL_TYPE_WDS]:
            window = Window()
            if 'TDEADLYR' in keywords:
                window.append_layer('Dead layer', (keywords.getfloat('TDEADLYR') * 1e4, 'um'))

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)
    def _parse_window(self, element):
        subelement = element.find('Window')
        if subelement is None:
            return Window()
        return self._handler_window.parse(subelement)

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.window = Window()
        self.window.append_layer('Al', 0.5)
    def testwindow(self):
        window = Window()
        window.append_layer('Al', 1.0)
        self.det.window = window
        self.assertEqual('Al', self.det.window.layers[0].material)
        pha = PulseHeightAnalyser(1700.0, 16, 0.7, 9.3, PHA_MODE_DIFFERENTIAL)
        self.det.pulse_height_analyser = pha
        window = Window()
        window.append_layer('Al', 1.0)
        self.det.window = window
    def testwindow(self):
        window = Window()
        window.append_layer('Al', 1.0)
        self.det.window = window
        self.assertEqual('Al', self.det.window.layers[0].material)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.detector import \
    (DetectorCamera, DetectorSpectrometer, DetectorSpectrometerCL,
     DetectorSpectrometerWDS, DetectorSpectrometerXEDS,
        self.h = WindowXMLHandler(1.0)
 
        self.obj = Window()
        self.obj.append_layer('Al', 1.0)