parameters: (self, setup, x, y)
docstring: Move the selected detector in both the can and sample workspaces, remembering the
              that ISIS SANS team see the detector from the other side
              @param setup: the reduction chain object that contains information about the reduction
              @param x: the distance to move in the x (-x) direction in metres
              @param y: the distance to move in the y (-y) direction in metres
docstring_summary: Move the selected detector in both the can and sample workspaces, remembering the
              that ISIS SANS team see the detector from the other side
docstring_tokens: Move the selected detector in both the can and sample workspaces remembering the that ISIS SANS team see the detector from the other side
function: def move(self, setup, x, y):
          """
              Move the selected detector in both the can and sample workspaces, remembering the
              that ISIS SANS team see the detector from the other side
              @param setup: the reduction chain object that contains information about the reduction
              @param x: the distance to move in the x (-x) direction in metres
              @param y: the distance to move in the y (-y) direction in metres
          """
          # Displacing the beam by +5 is equivalent to displacing the isntrument by -5. Hence we change
          # the sign here. LARMOR does this correction in the instrument itself, while for the others
          # we don't
          x = self.sign_coord1*x
          y = self.sign_coord2*y
  
          setup.instrument.elementary_displacement_of_single_component(workspace=setup.get_sample().wksp_name,
                                                                       component_name=self.detector,
                                                                       coord1 = x,
                                                                       coord2 = y,
                                                                       coord1_scale_factor = 1.,
                                                                       coord2_scale_factor = 1.,
                                                                       relative_displacement = True)
          if setup.get_can():
              setup.instrument.elementary_displacement_of_single_component(workspace=setup.get_can().wksp_name,
                                                                           component_name=self.detector,
                                                                           coord1 = x,
                                                                           coord2 = y,
                                                                           coord1_scale_factor = 1.,
                                                                           coord2_scale_factor = 1.,
                                                                           relative_displacement = True)
function_tokens: def move ( self , setup , x , y ) : # Displacing the beam by +5 is equivalent to displacing the isntrument by -5. Hence we change # the sign here. LARMOR does this correction in the instrument itself, while for the others # we don't x = self . sign_coord1 * x y = self . sign_coord2 * y setup . instrument . elementary_displacement_of_single_component ( workspace = setup . get_sample ( ) . wksp_name , component_name = self . detector , coord1 = x , coord2 = y , coord1_scale_factor = 1. , coord2_scale_factor = 1. , relative_displacement = True ) if setup . get_can ( ) : setup . instrument . elementary_displacement_of_single_component ( workspace = setup . get_can ( ) . wksp_name , component_name = self . detector , coord1 = x , coord2 = y , coord1_scale_factor = 1. , coord2_scale_factor = 1. , relative_displacement = True )