Did I find the right examples for you? yes no

All Samples(9)  |  Call(5)  |  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)
class Window(Parameter):
 
    layers = FrozenAttribute(list, doc='modifiable list of layers')
 
    def __init__(self, layers=None):

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 AcquisitionMultipoint(_Acquisition):
 
    CLASS = 'Multipoint'
 
    positions = FrozenAttribute(list, doc='specimen positions')
 
    raster_mode = EnumAttribute(_RASTER_MODES, False, 'RasterMode', 'mode of rastering')
    positions = FrozenAttribute(dict, doc='defined physical location(s) of the raster')
 
    def __init__(self, raster_mode=None,

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)
class SpecimenMultilayer(Specimen):
 
    CLASS = 'Multilayer'
 
    layers = FrozenAttribute(list, doc='modifiable list of layers')

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,
class MockParameter(Parameter):
 
    required = _Attribute(True, xmlname='XMLNAME')
    notrequired = _Attribute(False)
    frozen = FrozenAttribute(list)