Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/composition.py   pyHMSA(Download)
 
        composition = CompositionElemental(unit)
        composition.update(tmpcomposition)
        return composition
 

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_composition.py   pyHMSA(Download)
        self.comp = CompositionElemental('atoms', {11: 3})
        self.comp[13] = 1
        self.comp.update({9: 6})
 
    def tearDown(self):

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_specimen.py   pyHMSA(Download)
 
        comp = CompositionElemental('atoms')
        comp.update({11: 3, 13: 1, 9: 6})
        self.obj = Specimen('Cryolite', 'Natural cryolite standard',
                            'Kitaa, Greenland', 'Na3AlF6', comp, -20.0)
 
        comp = CompositionElemental('wt%')
        comp.update({6: 100.0})
        self.obj.append_layer('Carbon coat', 50.0, 'C', comp)