parameters: (self)
return_statement: return min(base, 1.0)
docstring: Calculates final progress value in percent.
          :return: value in [0,1] interval representing progress
docstring_summary: Calculates final progress value in percent.
          :return: value in [0,1] interval representing progress
docstring_tokens: Calculates final progress value in percent . : return : value in [ 0 1 ] interval representing progress
function: def compute_progress(self):
          """
          Calculates final progress value in percent.
          :return: value in [0,1] interval representing progress
          """
          base = float(self.steps) / self.total_steps
          if self.__subtask is not None:
              base += self.__subtask.compute_progress() * self.__subtask_steps / self.total_steps
  
          return min(base, 1.0)
function_tokens: def compute_progress ( self ) : base = float ( self . steps ) / self . total_steps if self . __subtask is not None : base += self . __subtask . compute_progress ( ) * self . __subtask_steps / self . total_steps return min ( base , 1.0 )