Esempio n. 1
0
    def __init__(self, *args, **kwargs):
        calibrator.Calibrator.__init__(self, *args, **kwargs)

        self.abort = threading.Event()

        self.measurement = {}
        self.comameasurement = {}

        self.calibration_clients = {
            'beam tilt': calibrationclient.BeamTiltCalibrationClient(self),
            'eucentric focus': calibrationclient.EucentricFocusClient(self),
        }
        self.btcalclient = self.calibration_clients['beam tilt']

        self.start()
    def __init__(self, id, session, managerlocation, **kwargs):

        self.correlator = correlator.Correlator()
        self.correlation_types = ['cross', 'phase']
        self.tableau_types = ['beam tilt series-power', 'split image-power']
        if not hide_incomplete:
            self.tableau_types.append('beam tilt series-image')
        self.tiltdelta = 5e-3
        self.tabscale = None
        manualfocuschecker.ManualFocusChecker.__init__(self, id, session,
                                                       managerlocation,
                                                       **kwargs)
        self.parameter_choice = 'Beam Tilt X'
        self.increment = 5e-4
        self.btcalclient = calibrationclient.BeamTiltCalibrationClient(self)
        self.imageshiftcalclient = calibrationclient.ImageShiftCalibrationClient(
            self)
        self.euclient = calibrationclient.EucentricFocusClient(self)
    def __init__(self, id, session, managerlocation, **kwargs):

        self.focus_methods = ordereddict.OrderedDict((
            ('Manual', self.manualCheckLoop),
            ('Beam Tilt', self.autoFocus),
            ('Stage Tilt', self.autoStage),
            ('None', self.noMeasure),
        ))

        self.correction_types = ordereddict.OrderedDict((
            ('Defocus', self.correctDefocusStig),
            ('Stage Z', self.correctZ),
            ('None', self.correctNone),
        ))

        self.correlation_types = ['cross', 'phase']
        self.default_setting = {
            'switch': True,
            'preset name': 'Grid',
            'focus method': 'Beam Tilt',
            'tilt': 0.01,
            'correlation type': 'phase',
            'fit limit': 1000,
            'delta min': 0.0,
            'delta max': 1e-3,
            'correction type': 'Defocus',
            'stig correction': False,
            'stig defocus min': 2e-6,
            'stig defocus max': 4e-6,
            'check drift': False,
            'drift threshold': 3e-10,
            'reset defocus': None,
        }
        self.manualplayer = player.Player(callback=self.onManualPlayer)
        manualfocuschecker.ManualFocusChecker.__init__(self, id, session,
                                                       managerlocation,
                                                       **kwargs)
        self.btcalclient = calibrationclient.BeamTiltCalibrationClient(self)
        self.stagetiltcalclient = calibrationclient.StageTiltCalibrationClient(
            self)
        self.imageshiftcalclient = calibrationclient.ImageShiftCalibrationClient(
            self)
        self.euclient = calibrationclient.EucentricFocusClient(self)
        self.focus_sequence = self.researchFocusSequence()
	def __init__(self, id, session, managerlocation, **kwargs):

		targetwatcher.TargetWatcher.__init__(self, id, session, managerlocation, **kwargs)

		self.addEventInput(event.AcquisitionImagePublishEvent, self.handleDriftImage)
		self.addEventInput(event.DriftMonitorResultEvent, self.handleDriftResult)
		self.addEventInput(event.ImageProcessDoneEvent, self.handleImageProcessDone)
		self.addEventInput(event.MakeTargetListEvent, self.setGrid)
		self.driftdone = threading.Event()
		self.driftimagedone = threading.Event()
		self.instrument = instrument.Proxy(self.objectservice, self.session)

		self.calclients = ordereddict.OrderedDict()
		self.calclients['image shift'] = calibrationclient.ImageShiftCalibrationClient(self)
		self.calclients['stage position'] = calibrationclient.StageCalibrationClient(self)
		self.calclients['modeled stage position'] = calibrationclient.ModeledStageCalibrationClient(self)
		self.calclients['image beam shift'] = calibrationclient.ImageBeamShiftCalibrationClient(self)
		self.calclients['beam shift'] = calibrationclient.BeamShiftCalibrationClient(self)
		self.calclients['beam tilt'] = calibrationclient.BeamTiltCalibrationClient(self)

		self.presetsclient = presets.PresetsClient(self)
		self.navclient = navigator.NavigatorClient(self)
		self.doneevents = {}
		self.onTarget = False
		self.imagelistdata = None
		self.simloopstop = threading.Event()
		self.received_image_drift = threading.Event()
		self.requested_drift = None
		self.grid = None
		self.acq_counter = itertools.cycle(range(0,5))
		self.time0 = time.time()
		self.times = []
		self.intensities = []
		self.alignzlp_bound = False
		self.alignzlp_warned = False

		self.duplicatetypes = ['acquisition', 'focus']
		self.presetlocktypes = ['acquisition', 'target', 'target list']

		if debug:
			self.timedebug = {}

		self.start()
    def __init__(self, id, session, managerlocation, **kwargs):

        acquisition.Acquisition.__init__(self, id, session, managerlocation,
                                         **kwargs)
        self.btcalclient = calibrationclient.BeamTiltCalibrationClient(self)