Пример #1
0
 def tweakxy(self, step=0.1, dirx=1, diry=-1):
     tweak2D(self.x,
             self.y,
             mothstep=step,
             motvstep=step,
             dirh=dirx,
             dirv=diry)
Пример #2
0
 def tweakzy(self, step=0.1, dirz=1, diry=-1):
     if self._name == 'pci target':
         tweak2D(self.z,
                 self.y,
                 mothstep=step,
                 motvstep=step,
                 dirh=dirz,
                 dirv=diry)
     else:
         tweak2D(self.z,
                 self.y,
                 mothstep=step,
                 motvstep=step,
                 dirh=dirz,
                 dirv=diry)
Пример #3
0
 def tweakxy(self, step=0.1, dirx=1, diry=-1):
     if self._name == 'pci target':
         tweak2D(self.x,
                 self.y,
                 mothstep=step,
                 motvstep=step,
                 dirh=dirx,
                 dirv=diry)
     else:
         tweak2D(self.tgx,
                 self.y,
                 mothstep=step,
                 motvstep=step,
                 dirh=dirx,
                 dirv=diry)
Пример #4
0
 def tweakair(self):
   if hasattr(self, 'air_x') and hasattr(self, 'air_y'):
     tweak2D(self.air_x,self.air_y,mothstep=0.001,motvstep=0.001,dirh=-1,dirv=-1)
Пример #5
0
 def tweakvac(self):
   if hasattr(self, 'vac_x') and hasattr(self, 'vac_y'):
     tweak2D(self.vac_x,self.vac_y,mothstep=0.001,motvstep=0.001,dirh=-1,dirv=-1)
Пример #6
0
 def align(self):
     """
 Tweak the x and y positions with the intention of aligning them with the
 beam.
 """
     tweak2D(self.x, self.y, -.02, .02, 'Be_lens_x', 'Be_lens_y')
Пример #7
0
 def tweakpos(self, val=0.1):
     '''Does a 2d tweak of the position of the slit'''
     tweak2D(self.mv_ho, self.mv_vo, mothstep=val, motvstep=val)
Пример #8
0
    def tweak(self):
        '''tweaks the left-right and up-down position of the questar. 
       2d tweak: use arrow for motion. +- changes stepsize. CTRL-C to quit'''

        tweak2D(self.mx, self.my, dirh=1, dirv=1)