Did I find the right examples for you? yes no

All Samples(13)  |  Call(9)  |  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)
    base_level = NumericalAttribute('V' , False, 'BaseLevel', 'base level')
    window = NumericalAttribute('V', False, 'Window', 'window')
    mode = EnumAttribute(_PHA_MODES, False, 'Mode', 'mode')
 
    def __init__(self, bias=None, gain=None, base_level=None, window=None,
class _Detector(_Condition):
 
    TEMPLATE = 'Detector'
 
    signal_type = EnumAttribute(_SIGNAL_TYPES, False, 'SignalType', 'type of signal')
    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')
 
    def __init__(self, channel_count, calibration, collection_mode=None,
class DetectorSpectrometerXEDS(DetectorSpectrometer):
 
    CLASS = 'Spectrometer/XEDS'
 
    technology = EnumAttribute(_XEDS_TECHNOLOGIES, False, 'Technology', 'technology')

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 _AcquisitionRaster(_Acquisition):
 
    CLASS = 'Raster'
 
    raster_mode = EnumAttribute(_RASTER_MODES, False, 'RasterMode', 'mode of rastering')
    step_size_y = NumericalAttribute('um', False, 'YStepSize', 'dimension of each step in y direction')
    step_size_z = NumericalAttribute('um', False, 'ZStepSize', 'dimension of each step in z direction')
    raster_mode_z = EnumAttribute(_RASTER_MODES_Z, False, 'ZRasterMode', 'mode of rastering in z direction')
 
    def __init__(self, step_count_x, step_count_y, step_count_z,

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/probe.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.util.parameter import NumericalAttribute, EnumAttribute
 
# Globals and constants variables.
    beam_voltage = NumericalAttribute('kV', True, 'BeamVoltage', 'beam voltage')
    beam_current = NumericalAttribute('nA', False, 'BeamCurrent', 'beam current')
    gun_type = EnumAttribute(_GUN_TYPES, False, 'GunType', 'type of gun')
    emission_current = NumericalAttribute('uA', False, 'EmissionCurrent', 'emission current')
    filament_current = NumericalAttribute('A', False, 'FilamentCurrent', 'filament current')
class ProbeTEM(ProbeEM):
 
    CLASS = 'TEM'
 
    lens_mode = EnumAttribute(_LENS_MODES, True, 'LensMode', 'lens mode')

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,
    line = XRayLineAttribute()
    object = ObjectAttribute(int)
    enum = EnumAttribute(['a', 'b', 'c'])
    numerical_range = NumericalRangeAttribute('s', -4.0, 4.0)
    date = DateAttribute()