def run(self, save_mode='save_final'): # At the end, move to the position of maximum brightness. end = b.baker(b.max_fifth_col, args=['IMAGE_ARR', self.scope, self.initial_position]) for n_step in self.config_dict['mmt_range']: # Allow the iteration to take place as many times as specified # in the scope_dict file. _exp.move_capture(self, {'z': [n_step]}, save_mode=save_mode, end_func=end) print self.scope.stage.position
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final'): print self.scope.stage.position end = b.baker(b.max_fifth_col, args=['IMAGE_ARR', self.scope, self.initial_position]) # Take measurements and move to position of maximum brightness. _exp.move_capture(self, {'x': self.config_dict['raster3d_n_step'], 'y': self.config_dict['raster3d_n_step'], 'z': self.config_dict['raster3d_n_step']}, func_list=func_list, save_mode=save_mode, end_func=end) print self.scope.stage.position
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final'): end = b.baker(b.max_fifth_col, args=['IMAGE_ARR', self.scope, self.initial_position]) # Take measurements and move to position of maximum brightness. # end_func is applied at the end of every set of (n, step). for n_step in self.config_dict['raster_n_step']: _exp.move_capture(self, {'x': [n_step], 'y': [n_step]}, func_list=func_list, save_mode=save_mode, end_func=end) print self.scope.stage.position
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final'): order_gen = b.baker(b.fixed_timer, kwargs={ 'count': self.config_dict["N"], 't': self.config_dict["t"] }, position_to_pass_through=(0, 3)) _exp.move_capture(self, {}, order_gen=order_gen, func_list=func_list, save_mode=save_mode, number=300, delay=0)
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final', axis='x'): """Operates on one axis at a time.""" # Get default values. step_pair = (self.config_dict["parabola_N"], self.config_dict["parabola_step"]) end = b.baker(b.move_to_parmax, args=['IMAGE_ARR', self.scope, axis]) _exp.move_capture(self, {axis: [step_pair]}, func_list=func_list, save_mode=save_mode, end_func=end)
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final'): end = b.baker(b.max_fifth_col, args=['IMAGE_ARR', self.scope, self.initial_position]) # Take measurements and move to position of maximum brightness. _exp.move_capture(self, { 'x': self.config_dict['raster_n_step'], 'y': self.config_dict['raster_n_step'] }, func_list=func_list, save_mode=save_mode, end_func=end) print self.scope.stage.position
def run(self, func_list=b.baker(b.unchanged), save_mode='save_final'): order_gen = b.baker(b.fixed_timer, kwargs={ 'count': self.config_dict["N"], 't': self.config_dict["t"]}, position_to_pass_through=(0, 3)) return _exp.move_capture(self, {}, order_gen=order_gen, func_list=func_list, save_mode=save_mode, number=1, delay=0)