Did I find the right examples for you? yes no

All Samples(78)  |  Call(68)  |  Derive(0)  |  Import(10)

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 PulseHeightAnalyser(Parameter):
 
    bias = NumericalAttribute('V', False, 'Bias', 'bias')
    gain = NumericalAttribute(None, False, 'Gain', 'gain')
    base_level = NumericalAttribute('V' , False, 'BaseLevel', 'base level')
    window = NumericalAttribute('V', False, 'Window', 'window')

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)
    formula = TextAttribute(False, 'Formula', 'formula')
    composition = ObjectAttribute(_Composition, False, doc='composition')
    temperature = NumericalAttribute('degreesC', False, 'Temperature', 'temperature')
 
    def __init__(self, name, description=None, origin=None, formula=None,
class SpecimenLayer(Parameter):
 
    name = TextAttribute(False, doc='name')
    thickness = NumericalAttribute('nm', False, 'Thickness', 'thickness')
    formula = TextAttribute(False, 'Formula', 'formula')

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 _Acquisition(_Condition):
 
    TEMPLATE = 'Acquisition'
 
    dwell_time = NumericalAttribute('s', False, 'DwellTime', "uniform real time taken for each individual measurement")
    total_time = NumericalAttribute('s', False, 'TotalTime', "total real time taken to collect all measurements")
    dwell_time_live = NumericalAttribute('s', False, 'DwellTime_Live', "analogous detector live time for each individual measurement")
class AcquisitionRasterLinescan(_AcquisitionRaster):
 
    CLASS = 'Raster/Linescan'
 
    step_count = NumericalAttribute(None, True, 'StepCount', 'number of steps')

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.
class ProbeEM(_Probe):
 
    CLASS = 'EM'
 
    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')

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/specimenposition.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.util.parameter import NumericalAttribute
 
# Globals and constants variables.
class SpecimenPosition(_Condition):
 
    TEMPLATE = 'SpecimenPosition'
 
    x = NumericalAttribute('mm', False, 'X', 'x coordinate')
    y = NumericalAttribute('mm', False, 'Y', 'y coordinate')
    z = NumericalAttribute('mm', False, 'Z', 'z coordinate')
    r = NumericalAttribute('degrees', False, 'R', 'rotation')

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 CalibrationConstant(_Calibration):
 
    value = NumericalAttribute(None, True, "Value", "constant value")
 
    def __init__(self, quantity, unit, value):
class CalibrationLinear(_Calibration):
 
    gain = NumericalAttribute(None, True, "Gain", "gain")
    offset = NumericalAttribute(None, True, "Offset", "offset")
 
class CalibrationPolynomial(_Calibration):
 
    coefficients = NumericalAttribute(None, True, 'Coefficients', 'polynomial coefficients')
 
    def __init__(self, quantity, unit, coefficients):

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
 
    line = XRayLineAttribute(NOTATION_SIEGBAHN, True, 'Line', 'x-ray line')
    energy = NumericalAttribute('eV', False, 'Energy', 'energy of x-ray line')
 
    def __init__(self, atomic_number=None, line=None, energy=None, symbol=None):

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
class MockParameter(Parameter):
 
    value1 = NumericalAttribute('s', True, 'Value1')
    value2 = NumericalAttribute('m', False, 'Value2')
    value3 = TextAttribute(False, 'Value3')

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,
    notrequired = _Attribute(False)
    frozen = FrozenAttribute(list)
    numerical = NumericalAttribute('m')
    text = TextAttribute()
    atomic_number = AtomicNumberAttribute()