Did I find the right examples for you? yes no

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

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)
    model = TextAttribute(False, 'Model', 'model')
    serial_number = TextAttribute(False, 'SerialNumber', 'serial number')
    measurement_unit = UnitAttribute('counts', False, 'MeasurementUnit', 'measurement unit')
    elevation = NumericalAttribute('degrees', False, 'Elevation', 'elevation')
    azimuth = NumericalAttribute('degrees', False, 'Azimuth', 'azimuth')

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/calibration.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.util.parameter import \
    Parameter, TextAttribute, NumericalAttribute, UnitAttribute
 
class _Calibration(Parameter):
 
    quantity = TextAttribute(True, 'Quantity', 'physical quantity')
    unit = UnitAttribute(None, True, 'Unit', 'unit')
 

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/composition.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.util.parameter import ParameterMetaclass, UnitAttribute
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.type.numerical import convert_value
class _Composition(_Condition):
 
    TEMPLATE = 'Composition'
 
    unit = UnitAttribute(None, True, 'Unit', 'unit in which the composition is defined')

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,
    text = TextAttribute()
    atomic_number = AtomicNumberAttribute()
    unit = UnitAttribute()
    line = XRayLineAttribute()
    object = ObjectAttribute(int)