original_docstring:  Find feature_activities that result from new cable_activities 
docstring: Find feature_activities that result from new cable_activities
docstring_tokens: Find feature_activities that result from new cable_activities
code: def step_up(self, action, sensors):
          """ Find feature_activities that result from new cable_activities """
          self.num_actions = action.size
          cable_activities = np.vstack((action, sensors))
          for gearbox in self.gearboxes:
              cable_activities = gearbox.step_up(cable_activities) 
          # Create a new gearbox if the top gearbox has had 
          # enough bundles assigned
          if gearbox.bundles_created() > 1:
              self.add_gearbox()
              cable_activities = self.gearboxes[-1].step_up(cable_activities) 
          # Build full feature activities array
          num_features = self.cables_per_gearbox * len(self.gearboxes)
          feature_activities = np.zeros((num_features , 1))
          for (gearbox_index, gearbox) in enumerate(self.gearboxes):
              start_index = self.cables_per_gearbox * gearbox_index
              end_index = self.cables_per_gearbox * (gearbox_index + 1)
              feature_activities[start_index: end_index] = \
                      gearbox.cable_activities.copy()
          return feature_activities
code_tokens: def step_up ( self , action , sensors ) : self . num_actions = action . size cable_activities = np . vstack ( ( action , sensors ) ) for gearbox in self . gearboxes : cable_activities = gearbox . step_up ( cable_activities ) if gearbox . bundles_created ( ) > 1 : self . add_gearbox ( ) cable_activities = self . gearboxes [ - 1 ] . step_up ( cable_activities ) num_features = self . cables_per_gearbox * len ( self . gearboxes ) feature_activities = np . zeros ( ( num_features , 1 ) ) for ( gearbox_index , gearbox ) in enumerate ( self . gearboxes ) : start_index = self . cables_per_gearbox * gearbox_index end_index = self . cables_per_gearbox * ( gearbox_index + 1 ) feature_activities [ start_index : end_index ] = gearbox . cable_activities . copy ( ) return feature_activities
short_docstring: Find feature_activities that result from new cable_activities
short_docstring_tokens: Find feature_activities that result from new cable_activities
comment: """ Find feature_activities that result from new cable_activities """$SEP$# Create a new gearbox if the top gearbox has had $SEP$# enough bundles assigned$SEP$# Build full feature activities array