Did I find the right examples for you? yes no

All Samples(16)  |  Call(10)  |  Derive(0)  |  Import(6)

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/specimen.py   pyHMSA(Download)
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.spec.condition.composition import _Composition
from pyhmsa.util.parameter import \
    (Parameter, NumericalAttribute, TextAttribute, ObjectAttribute,
     FrozenAttribute)
    origin = TextAttribute(False, 'Origin', 'origin')
    formula = TextAttribute(False, 'Formula', 'formula')
    composition = ObjectAttribute(_Composition, False, doc='composition')
    temperature = NumericalAttribute('degreesC', False, 'Temperature', 'temperature')
 
    thickness = NumericalAttribute('nm', False, 'Thickness', 'thickness')
    formula = TextAttribute(False, 'Formula', 'formula')
    composition = ObjectAttribute(_Composition, False, doc='composition')
 
    def __init__(self, name=None, thickness=None, formula=None, composition=None):

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/detector.py   pyHMSA(Download)
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.spec.condition.calibration import _Calibration
from pyhmsa.util.parameter import \
    (Parameter, NumericalAttribute, EnumAttribute, TextAttribute,
     FrozenAttribute, UnitAttribute, ObjectAttribute)
 
    channel_count = NumericalAttribute(None, True, 'ChannelCount', 'number of channels')
    calibration = ObjectAttribute(_Calibration, True, doc='calibration')
    collection_mode = EnumAttribute(_COLLECTION_MODES, False, 'CollectionMode', 'mode of collection')
 
    crystal_2d = NumericalAttribute(u'\u00c5', False, 'Crystal-2d', 'crystal 2d-spacing')
    rowland_circle_diameter = NumericalAttribute('mm', False, 'RowlandCircleDiameter', 'Rowland circle diameter')
    pulse_height_analyser = ObjectAttribute(PulseHeightAnalyser, False, 'PulseHeightAnalyser', 'pulse height analyzer')
    window = ObjectAttribute(Window, False, doc='window')
 
    time_constant = NumericalAttribute('us', False, 'TimeConstant', 'time constant')
    strobe_rate = NumericalAttribute('Hz', False, 'StrobeRate', 'strobe rate')
    window = ObjectAttribute(Window, False, doc='window')
 
    def __init__(self, channel_count, calibration, collection_mode=None,

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/acquisition.py   pyHMSA(Download)
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.fileformat.xmlhandler.xmlhandler import _XMLHandler
from pyhmsa.util.parameter import ObjectAttribute
 
# Globals and constants variables.
    def __init__(self, version):
        _XMLHandler.__init__(self, version)
        self._attrib_specimen_position = \
            ObjectAttribute(SpecimenPosition, xmlname='SpecimenPosition')
 
    def __init__(self, version):
        _XMLHandler.__init__(self, version)
        self._attrib_specimen_position = \
            ObjectAttribute(SpecimenPosition, xmlname='SpecimenPosition')
 

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/acquisition.py   pyHMSA(Download)
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.util.parameter import \
    NumericalAttribute, ObjectAttribute, EnumAttribute, FrozenAttribute
from pyhmsa.util.cookbook import flatten
class AcquisitionPoint(_Acquisition):
 
    CLASS = 'Point'
 
    position = ObjectAttribute(SpecimenPosition, True, "SpecimenPosition",

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/util/test_parameter.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.util.parameter import \
    (Parameter, _Attribute, FrozenAttribute, NumericalAttribute, TextAttribute,
     AtomicNumberAttribute, UnitAttribute, XRayLineAttribute, ObjectAttribute,
    unit = UnitAttribute()
    line = XRayLineAttribute()
    object = ObjectAttribute(int)
    enum = EnumAttribute(['a', 'b', 'c'])
    numerical_range = NumericalRangeAttribute('s', -4.0, 4.0)