<commit_before>from controller import Controller

class MTS50(Controller):
  """
  A controller for a MTS50/M-Z8 stage.
  """
  def __init__(self,*args, **kwargs):
    super(MTS50, self).__init__(*args, **kwargs)

    # http://www.thorlabs.co.uk/thorProduct.cfm?partNumber=MTS50/M-Z8
    # Note that these values are pulled from the APT User software,
    # as they agree with the real limits of the stage better than
    # what the website or the user manual states
    self.max_velocity = 0.45
    self.max_acceleration = 0.45

    # yeah so manual values are junk. APT User seems to have the correct
    # values built in, in that when I tell it to go 5mm, it goes 5mm. So to
    # compute these values:
    #   1. In APT User set a distance, max velocity, and max accel in move
    #      sequencer
    #   2. Home and run
    #   3. Extra the 'raw' values from the controller using pyAPT
    #   4. Compute scaling factors

    self.position_scale = 24576.059
    self.velocity_scale = 366511.111
    self.acceleration_scale = 1/0.006

    self.linear_range = (0,50)
<commit_msg>Updates position scale factor of MTS50.<commit_after>from controller import Controller

class MTS50(Controller):
  """
  A controller for a MTS50/M-Z8 stage.
  """
  def __init__(self,*args, **kwargs):
    super(MTS50, self).__init__(*args, **kwargs)

    # http://www.thorlabs.co.uk/thorProduct.cfm?partNumber=MTS50/M-Z8
    # Note that these values are pulled from the APT User software,
    # as they agree with the real limits of the stage better than
    # what the website or the user manual states
    self.max_velocity = 0.45
    self.max_acceleration = 0.45

    # yeah so manual values are junk. APT User seems to have the correct
    # values built in, in that when I tell it to go 5mm, it goes 5mm. So to
    # compute these values:
    #   1. In APT User set a distance, max velocity, and max accel in move
    #      sequencer
    #   2. Home and run
    #   3. Extra the 'raw' values from the controller using pyAPT
    #   4. Compute scaling factors

    self.position_scale = 24560
    self.velocity_scale = 366511.111
    self.acceleration_scale = 1/0.006

    self.linear_range = (0,50)

{'fraction_non_alphanumeric': 0.08401826484018265, 'fraction_numerical': 0.04246575342465753, 'mean_word_length': 2.857394366197183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7079603', 'n_tokens_mistral': 766, 'n_tokens_neox': 686, 'n_words': 261}