def calc(self, num_windows, width, height):
        best_ratio = None
        best_rows_cols_orientation = None
        for rows, cols, orientation in self._possible_grids(num_windows):

            sample_width = width / cols
            sample_height = height / rows
            sample_ratio = sample_width / sample_height
            diff = abs(sample_ratio - self.ratio)
            if best_ratio is None or diff < best_ratio:
                best_ratio = diff
                best_rows_cols_orientation = (rows, cols, orientation)

        return best_rows_cols_orientation
Returns a dictionary of info for this screen.
dataset/ETHPy150Open qtile/qtile/libqtile/layout/ratiotile.py/GridInfo.calc--crossover with--dataset/ETHPy150Open qtile/qtile/libqtile/config.py/Screen.cmd_info