Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/elementalid.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.elementalid import ElementalID, ElementalIDXray
from pyhmsa.fileformat.xmlhandler.xmlhandler import _XMLHandler
 

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_elementalid.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.elementalid import ElementalID, ElementalIDXray
 
# Globals and constants variables.
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.element = ElementalID(11)
 
    def tearDown(self):
        unittest.TestCase.tearDown(self)
 
    def testskeleton(self):
        element = ElementalID(symbol='Na')

src/p/y/pyHMSA-0.1/pyhmsa/test_datafile.py   pyHMSA(Download)
from pyhmsa.datafile import DataFile
from pyhmsa.spec.datum.analysis import Analysis0D
from pyhmsa.spec.condition.elementalid import ElementalID
 
# Globals and constants variables.
    def testadd_condition(self):
        self.datafile.conditions['cond'] = ElementalID(13)
 
        self.assertEqual(1, len(self.datafile.conditions))
 
    def testadd_datum_condition(self):
        datum = Analysis0D(1.0)
        datum.conditions['cond'] = ElementalID(13)
    def testadd_datum_condition2(self):
        datum = Analysis0D(1.0)
        self.datafile.data['datum'] = datum
        self.datafile.data['datum'].conditions['cond'] = ElementalID(13)
 
    def testadd_datum_condition3(self):
        datum = Analysis0D(1.0)
        self.datafile.data['datum'] = datum
 
        self.datafile.conditions['cond'] = ElementalID(13)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_elementalid.py   pyHMSA(Download)
from pyhmsa.fileformat.xmlhandler.condition.elementalid import \
    ElementalIDXMLHandler, ElementalIDXrayXMLHandler
from pyhmsa.spec.condition.elementalid import ElementalID, ElementalIDXray
 
# Globals and constants variables.
        self.h = ElementalIDXMLHandler(1.0)
 
        self.obj = ElementalID(11)
 
        source = u'<ElementalID><Element DataType="uint32" Symbol="Na">11</Element></ElementalID>'