def normalised(self, max_time_back_seconds=None, resolution=60, status_type=None):
        """Turns a sparse time series into a dense one, with number of seconds per bucket specified by resolution.
        If a status_type (status, webStatus, messengerStatus etc.) is given, returns a generator of the status level (online, offline, idle) for that status type."""

        if max_time_back_seconds is None:
            start_time = self.EPOCH_TIME
        else:
            start_time = max_time_back_seconds - self.START_TIME

        for tick in range(start_time, self.START_TIME, resolution):
            status_obj = self.get_status(tick)
            if status_type is None:
                yield status_obj.highest_active_status_type()
            else:
                yield status_obj._status[status_type]
dataset/ETHPy150Open defaultnamehere/zzzzz/history.py/StatusHistory.normalised/swapped operands of `-`