Did I find the right examples for you? yes no

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

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/elementalid.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.util.parameter import \
    NumericalAttribute, XRayLineAttribute, AtomicNumberAttribute
from pyhmsa.util.element_properties import get_symbol, get_atomic_number
class ElementalIDXray(ElementalID):
 
    CLASS = 'X-ray'
 
    line = XRayLineAttribute(NOTATION_SIEGBAHN, True, 'Line', 'x-ray line')

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/xmlhandler.py   pyHMSA(Download)
from pyhmsa.type.checksum import Checksum
from pyhmsa.type.xrayline import xrayline
from pyhmsa.util.parameter import \
    (NumericalAttribute, TextAttribute, ObjectAttribute, DateAttribute,
     TimeAttribute, ChecksumAttribute, XRayLineAttribute)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/test_xmlhandler.py   pyHMSA(Download)
# Local modules.
from pyhmsa.fileformat.xmlhandler.xmlhandler import _XMLHandler
from pyhmsa.util.parameter import \
    Parameter, NumericalAttribute, TextAttribute, XRayLineAttribute
from pyhmsa.type.language import langstr
    value2 = NumericalAttribute('m', False, 'Value2')
    value3 = TextAttribute(False, 'Value3')
    value4 = XRayLineAttribute(NOTATION_SIEGBAHN, False, 'Value4')
 
    def __init__(self, value1, value2=None, value3=None, value4=None):

src/p/y/pyHMSA-0.1/pyhmsa/util/test_parameter.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.util.parameter import \
    (Parameter, _Attribute, FrozenAttribute, NumericalAttribute, TextAttribute,
     AtomicNumberAttribute, UnitAttribute, XRayLineAttribute, ObjectAttribute,
    atomic_number = AtomicNumberAttribute()
    unit = UnitAttribute()
    line = XRayLineAttribute()
    object = ObjectAttribute(int)
    enum = EnumAttribute(['a', 'b', 'c'])