Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
            window = Window()
            if 'TDEADLYR' in keywords:
                window.append_layer('Dead layer', (keywords.getfloat('TDEADLYR') * 1e4, 'um'))
            if 'TACTLYR' in keywords:
                window.append_layer('Active Layer', (keywords.getfloat('TACTLYR') * 1e4, 'um'))
            if 'TBEWIND' in keywords:
                window.append_layer('Be window', (keywords.getfloat('TBEWIND') * 1e4, 'um'))
            if 'TAUWIND' in keywords:
                window.append_layer('Au window', (keywords.getfloat('TAUWIND') * 1e4, 'um'))
                window.append_layer('Au window', (keywords.getfloat('TAUWIND') * 1e4, 'um'))
            if 'TALWIND' in keywords:
                window.append_layer('Al window', (keywords.getfloat('TALWIND') * 1e4, 'um'))
            if 'TPYWIND' in keywords:
                window.append_layer('Pyrolene window', (keywords.getfloat('TPYWIND') * 1e4, 'um'))

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_detector.py   pyHMSA(Download)
    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)
        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)
        self.det.strobe_rate = 2000
        window = Window()
        window.append_layer('Al', 1.0)
        self.det.window = window
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_detector.py   pyHMSA(Download)
 
        self.obj = Window()
        self.obj.append_layer('Al', 1.0)
 
        source = '<Window><Layer Material="Al" Unit="um" DataType="float">1.</Layer></Window>'