              for key in raw_keys:
                  selected_key = f"{selection}_{key.replace('raw_', '')}"
                  self._stats[selected_key] = method(self._stats[key])
  
      def _calc_avg(self, data):
          """ Calculate moving average.
  
          Parameters
          ----------
          data: :class:`numpy.ndarray`
 
</s> remove     def _calc_trend(cls, data):
 </s> add     def _calc_trend(cls, data: np.ndarray) -> np.ndarray: </s> remove         return _ExponentialMovingAverage(data, self._args["smooth_amount"])()
 </s> add         retval = _ExponentialMovingAverage(data, self._args["smooth_amount"])()
        logger.debug("Calculated Smoothed data: shape: %s", retval.shape)
        return retval </s> remove     def _calc_smoothed(self, data):
 </s> add     def _calc_smoothed(self, data: np.ndarray) -> np.ndarray: </s> remove     def __call__(self):
 </s> add     def __call__(self) -> np.ndarray:
    def _calc_avg(self, data: np.ndarray) -> np.ndarray:
              for key in raw_keys:
                  selected_key = f"{selection}_{key.replace('raw_', '')}"
                  self._stats[selected_key] = method(self._stats[key])
  
    def _calc_avg(self, data: np.ndarray) -> np.ndarray:
          """ Calculate moving average.
  
          Parameters
          ----------
          data: :class:`numpy.ndarray`
keep keep keep keep replace keep keep keep keep keep
 Bugfixes:
  - Stats graph - Handle NaNs in data
  - logger - de-elevate matplotlib font messages 
lib/gui/analysis/stats.py