Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/y/pyHMSA-0.1/pyhmsa/spec/condition/test_acquisition.py   pyHMSA(Download)
 
# Globals and constants variables.
from pyhmsa.spec.condition.acquisition import \
    (POSITION_LOCATION_CENTER, POSITION_LOCATION_START, POSITION_LOCATION_END,
     RASTER_MODE_STAGE, RASTER_MODE_Z_FIB)
    def testposition(self):
        self.assertIsNone(self.acq.position)
 
        position = SpecimenPosition(0.5)
        self.acq.set_position(position, POSITION_LOCATION_CENTER)
 
        position = SpecimenPosition(0.3)
        self.acq.position = (position, POSITION_LOCATION_CENTER)
        self.assertAlmostEqual(0.3, self.acq.position.x, 4)
        self.assertIn(POSITION_LOCATION_CENTER, self.acq.positions)
    def testposition(self):
        self.assertIsNone(self.acq.position)
 
        position = SpecimenPosition(0.5)
        self.acq.set_position(position, POSITION_LOCATION_CENTER)