              The formatted log message
          """
          record.message = record.getMessage()
          record = self._rewrite_warnings(record)
          # strip newlines
          if record.levelno < 30 and ("\n" in record.message or "\r" in record.message):
              record.message = record.message.replace("\n", "\\n").replace("\r", "\\r")
  
          if self.usesTime():
              record.asctime = self.formatTime(record, self.datefmt)
 
</s> remove         if hrs < 10:
            hrs = f"{hrs:02d}"
 </s> add         hrs = f"{hrs:02d}" if hrs < 10 else str(hrs) </s> remove         selections = list()
 </s> add         selections = [] </s> remove         mean = np.mean(data)
        limit = np.std(data)
 </s> add         mean = np.mean(np.nan_to_num(data))
        limit = np.std(np.nan_to_num(data)) </s> remove     def _option_button_reload(self, *args):  # pylint: disable=unused-argument
        """ Action for reset button press and checkbox changes. """
 </s> add     def _option_button_reload(self, *args) -> None:  # pylint: disable=unused-argument
        """ Action for reset button press and checkbox changes.

        Parameters
        ----------
        args: tuple
            Required for TK Callback but unused
        """
        record = self._lower_external(record)
              The formatted log message
          """
          record.message = record.getMessage()
          record = self._rewrite_warnings(record)
        record = self._lower_external(record)
          # strip newlines
          if record.levelno < 30 and ("\n" in record.message or "\r" in record.message):
              record.message = record.message.replace("\n", "\\n").replace("\r", "\\r")
  
          if self.usesTime():
              record.asctime = self.formatTime(record, self.datefmt)
keep keep keep add keep keep keep keep keep keep
 Bugfixes:
  - Stats graph - Handle NaNs in data
  - logger - de-elevate matplotlib font messages 
lib/logger.py