original_docstring: 
          Assign goal to the appropriate gearbox
          
          When a goal cable is selected by the hub, it doesn't know which
          gearbox it belongs to. This method sorts that out. 
          
docstring: Assign goal to the appropriate gearbox
  When a goal cable is selected by the hub, it doesn't know which
  gearbox it belongs to. This method sorts that out.
docstring_tokens: Assign goal to the appropriate gearbox When a goal cable is selected by the hub it doesn ' t know which gearbox it belongs to . This method sorts that out .
code: def assign_goal(self, goal_index): 
          """
          Assign goal to the appropriate gearbox
          
          When a goal cable is selected by the hub, it doesn't know which
          gearbox it belongs to. This method sorts that out. 
          """
          gearbox_index = int(np.floor(goal_index / self.cables_per_gearbox))
          cable_index = goal_index - gearbox_index * self.cables_per_gearbox
          # Activate the goal
          self.gearboxes[gearbox_index].hub_cable_goals[cable_index] = 1.
code_tokens: def assign_goal ( self , goal_index ) : gearbox_index = int ( np . floor ( goal_index / self . cables_per_gearbox ) ) cable_index = goal_index - gearbox_index * self . cables_per_gearbox self . gearboxes [ gearbox_index ] . hub_cable_goals [ cable_index ] = 1.
short_docstring: Assign goal to the appropriate gearbox
  When a goal cable is selected by the hub, it doesn't know which
  gearbox it belongs to.
short_docstring_tokens: Assign goal to the appropriate gearbox When a goal cable is selected by the hub it doesn ' t know which gearbox it belongs to .
comment: """
          Assign goal to the appropriate gearbox
          
          When a goal cable is selected by the hub, it doesn't know which
          gearbox it belongs to. This method sorts that out. 
          """$SEP$# Activate the goal