parameters: (self, related_y_column)
docstring: :param related_y_column: The real index of the column for which the error is being marked
          :param label_index: The index present in the label of the column for which the error is being marked
                              This will be the number in <ColumnName>[Y10] -> the 10
function: def action_set_as_y_err(self, related_y_column):
          """
  
          :param related_y_column: The real index of the column for which the error is being marked
          :param label_index: The index present in the label of the column for which the error is being marked
                              This will be the number in <ColumnName>[Y10] -> the 10
          """
          try:
              selected_column = self._get_selected_columns(1, self.TOO_MANY_TO_SET_AS_Y_ERR_MESSAGE)
          except ValueError:
              return
  
          try:
              err_column = ErrorColumn(selected_column, related_y_column)
          except ValueError as e:
              self.presenter.view.show_warning(str(e))
              return
  
          removed_items = self.presenter.model.marked_columns.add_y_err(err_column)
          # if a column other than the one the user has just picked as a y err column has been affected,
          # reset it's type to None
          for col in removed_items:
              if col != selected_column:
                  self.presenter.model.set_column_type(int(col), 0)
          self.presenter.model.set_column_type(selected_column, 5, related_y_column)
          self.presenter.update_column_headers()
function_tokens: def action_set_as_y_err ( self , related_y_column ) : try : selected_column = self . _get_selected_columns ( 1 , self . TOO_MANY_TO_SET_AS_Y_ERR_MESSAGE ) except ValueError : return try : err_column = ErrorColumn ( selected_column , related_y_column ) except ValueError as e : self . presenter . view . show_warning ( str ( e ) ) return removed_items = self . presenter . model . marked_columns . add_y_err ( err_column ) # if a column other than the one the user has just picked as a y err column has been affected, # reset it's type to None for col in removed_items : if col != selected_column : self . presenter . model . set_column_type ( int ( col ) , 0 ) self . presenter . model . set_column_type ( selected_column , 5 , related_y_column ) self . presenter . update_column_headers ( )