original_docstring:  Perform the required calculations and populate :attr:`stats`. 
docstring: Perform the required calculations and populate :attr:`stats`.
docstring_tokens: Perform the required calculations and populate : attr : ` stats ` .
code: def _get_calculations(self):
          """ Perform the required calculations and populate :attr:`stats`. """
          for selection in self._selections:
              if selection == "raw":
                  continue
              logger.debug("Calculating: %s", selection)
              method = getattr(self, "_calc_{}".format(selection))
              raw_keys = [key for key in self._stats if key.startswith("raw_")]
              for key in raw_keys:
                  selected_key = "{}_{}".format(selection, key.replace("raw_", ""))
                  self._stats[selected_key] = method(self._stats[key])
code_tokens: def _get_calculations ( self ) : for selection in self . _selections : if selection == "raw" : continue logger . debug ( "Calculating: %s" , selection ) method = getattr ( self , "_calc_{}" . format ( selection ) ) raw_keys = [ key for key in self . _stats if key . startswith ( "raw_" ) ] for key in raw_keys : selected_key = "{}_{}" . format ( selection , key . replace ( "raw_" , "" ) ) self . _stats [ selected_key ] = method ( self . _stats [ key ] )
short_docstring: Perform the required calculations and populate :attr:`stats`.
short_docstring_tokens: Perform the required calculations and populate : attr : ` stats ` .
comment: """ Perform the required calculations and populate :attr:`stats`. """