Did I find the right examples for you? yes no

All Samples(25)  |  Call(17)  |  Derive(0)  |  Import(8)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/importer/emsa.py   pyHMSA(Download)
from pyhmsa.spec.condition.probe import ProbeEM, ProbeTEM
from pyhmsa.spec.condition.acquisition import AcquisitionPoint
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.spec.condition.detector import \
    (DetectorSpectrometer, DetectorSpectrometerXEDS, DetectorSpectrometerCL,
            return {}
 
        position = SpecimenPosition(x=keywords.getfloat('XPOSITION'),
                                    y=keywords.getfloat('YPOSITION'),
                                    z=keywords.getfloat('ZPOSITION')) #FIXME: Handle XTILTSTGE and YTILTSTGE

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_acquisition.py   pyHMSA(Download)
    AcquisitionRasterXY, AcquisitionRasterXYZ
     )
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
 
# Globals and constants variables.
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        position = SpecimenPosition(x=5, y=5, z=11)
        self.acq = AcquisitionPoint(position, total_time=10.0)
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.acq = AcquisitionMultipoint()
        self.acq.positions.append(SpecimenPosition(x=5, y=5, z=11))
        self.acq.positions.append(SpecimenPosition(x=6, y=6, z=11))
    def teststart_position(self):
        self.assertFalse(self.acq.position_start)
 
        self.acq.position_start = SpecimenPosition(y=1.0)
        self.assertAlmostEqual(1.0, self.acq.position_start.y, 4)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/specimenposition.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.fileformat.xmlhandler.xmlhandler import _XMLHandler
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/acquisition.py   pyHMSA(Download)
    (AcquisitionPoint, AcquisitionMultipoint,
     AcquisitionRasterLinescan, AcquisitionRasterXY, AcquisitionRasterXYZ)
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.fileformat.xmlhandler.xmlhandler import _XMLHandler
from pyhmsa.util.parameter import ObjectAttribute

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_specimenposition.py   pyHMSA(Download)
 
# Local modules.
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
 
# Globals and constants variables.
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.position = SpecimenPosition(y=5.0, r=90.0)
 

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/acquisition.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.condition.condition import _Condition
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
from pyhmsa.util.parameter import \
    NumericalAttribute, ObjectAttribute, EnumAttribute, FrozenAttribute

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_acquisition.py   pyHMSA(Download)
    (AcquisitionPoint, AcquisitionMultipoint,
     AcquisitionRasterLinescan, AcquisitionRasterXY, AcquisitionRasterXYZ)
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
 
# Globals and constants variables.
        self.h = AcquisitionPointXMLHandler(1.0)
 
        position = SpecimenPosition(0.0, 0.0, 10.0, 90.0, 70.0)
        self.obj = AcquisitionPoint(position, 35.0, 14400.0, 36.0)
 
 
        self.obj = AcquisitionMultipoint()
        self.obj.positions.append(SpecimenPosition(0.0, 0.0, 10.0, 90.0, 70.0))
        self.obj.positions.append(SpecimenPosition(1.0, 1.0, 11.0, 91.0, 71.0))
 
        self.h = AcquisitionRasterLinescanXMLHandler(1.0)
 
        position_start = SpecimenPosition(0.0, 0.0, 10.0)
        position_end = SpecimenPosition(10.24, 0.0, 10.0)
        self.obj = AcquisitionRasterLinescan(1024, 10.0, position_start,

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/condition/test_specimenposition.py   pyHMSA(Download)
# Local modules.
from pyhmsa.fileformat.xmlhandler.condition.specimenposition import SpecimenPositionXMLHandler
from pyhmsa.spec.condition.specimenposition import SpecimenPosition
 
# Globals and constants variables.
        self.h = SpecimenPositionXMLHandler(1.0)
 
        self.obj = SpecimenPosition(0.0, 0.0, 10.0, 90.0, 70.0)
 
        source = '<SpecimenPosition><X Unit="mm" DataType="float">0.0</X><Y Unit="mm" DataType="float">0.0</Y><Z Unit="mm" DataType="float">10.0</Z><R Unit="degrees" DataType="float">90.0</R><T Unit="degrees" DataType="float">70.0</T></SpecimenPosition>'