# Path: chainconsumer/helpers.py
# def get_latex_table_frame(caption, label):  # pragma: no cover
#     base_string = r"""\begin{table}
#     \centering
#     \caption{%s}
#     \label{%s}
#     \begin{tabular}{%s}
#         %s    \end{tabular}
# \end{table}"""
#     return base_string % (caption, label, "%s", "%s")


from scipy.interpolate import griddata
from .helpers import get_latex_table_frame
import numpy as np
import logging
            Whether to insert hlines in the table or not.
        aic : bool, optional
            Whether to include a column for AICc or not.
        bic : bool, optional
            Whether to include a column for BIC or not.
        dic : bool, optional
            Whether to include a column for DIC or not.
        sort : str, optional
            How to sort the models. Should be one of "bic", "aic" or "dic".
        descending : bool, optional
            The sort order.

        Returns
        -------
        str
            A LaTeX table to be copied into your document.
        """

        if sort == "bic":
            assert bic, "You cannot sort by BIC if you turn it off"
        if sort == "aic":
            assert aic, "You cannot sort by AIC if you turn it off"
        if sort == "dic":
            assert dic, "You cannot sort by DIC if you turn it off"

        if caption is None:
            caption = ""
        if label is None:
            label = ""


# Path: chainconsumer/helpers.py
# def get_latex_table_frame(caption, label):  # pragma: no cover
#     base_string = r"""\begin{table}
#     \centering
#     \caption{%s}
#     \label{%s}
#     \begin{tabular}{%s}
#         %s    \end{tabular}
# \end{table}"""
#     return base_string % (caption, label, "%s", "%s")


# Path: chainconsumer/comparisons.py
from scipy.interpolate import griddata
from .helpers import get_latex_table_frame
import numpy as np
import logging

            Whether to insert hlines in the table or not.
        aic : bool, optional
            Whether to include a column for AICc or not.
        bic : bool, optional
            Whether to include a column for BIC or not.
        dic : bool, optional
            Whether to include a column for DIC or not.
        sort : str, optional
            How to sort the models. Should be one of "bic", "aic" or "dic".
        descending : bool, optional
            The sort order.

        Returns
        -------
        str
            A LaTeX table to be copied into your document.
        """

        if sort == "bic":
            assert bic, "You cannot sort by BIC if you turn it off"
        if sort == "aic":
            assert aic, "You cannot sort by AIC if you turn it off"
        if sort == "dic":
            assert dic, "You cannot sort by DIC if you turn it off"

        if caption is None:
            caption = ""
        if label is None:
            label = ""


        base_string = get_latex_table_frame(caption, label)