# Path: bmlingam/tests/test_pm3.py
# def _gen_data(i, gen_data_params):
# def _estimate_hparams(xs, infer_params):
# def _mainloop(n_trials, gen_data_params, infer_params, mcmc_params):
# def test_posterior_inference(
#     infer_params=None, mcmc_params=None, gen_data_params=None, 
#     n_trials=50, plot_result=False, plot_samples_all=False, show_result=False, 
#     show_result_all=False):


from copy import deepcopy
from bmlingam.tests.test_pm3 import test_posterior_inference, \
                                    infer_params_default, \
                                    mcmc_params_default, \
                                    gen_data_params_default
import six


    :param infer_params_names: Name of inference parameters. 
    :type infer_params_names: str or list of str
    :param mcmc_params_names: Name of MCMC parameters. 
    :type mcmc_params_names: str or list of str
    :param gen_data_params_names: Name of data generation parameters. 
    :type gen_data_params_names: str or list of str

    See get_infer_paramss(), get_mcmc_paramss() and get_data_gen_paramss(). 
    """
    infer_paramss = _get_infer_paramss()
    mcmc_paramss = _get_mcmc_paramss()
    gen_data_paramss = _get_gen_data_paramss()

    infer_params_names_ = _wrap_list(infer_params_names)
    mcmc_params_names_ = _wrap_list(mcmc_params_names)
    gen_data_params_names_ = _wrap_list(gen_data_params_names)

    for ip in infer_params_names_:
        infer_params = infer_paramss[ip]
        for mp in mcmc_params_names_:
            mcmc_params = mcmc_paramss[mp]
            for gp in gen_data_params_names_:
                gen_data_params = gen_data_paramss[gp]

                print('Test condition')
                print('  infer_params_name = {}'.format(ip))
                print('  mcmc_params_name = {}'.format(mp))
                print('  gen_data_params_name = {}\n'.format(gp))


# Path: bmlingam/tests/test_pm3.py
# def _gen_data(i, gen_data_params):
# def _estimate_hparams(xs, infer_params):
# def _mainloop(n_trials, gen_data_params, infer_params, mcmc_params):
# def test_posterior_inference(
#     infer_params=None, mcmc_params=None, gen_data_params=None, 
#     n_trials=50, plot_result=False, plot_samples_all=False, show_result=False, 
#     show_result_all=False):


# Path: bmlingam/tests/test_bmlingam.py
from copy import deepcopy
from bmlingam.tests.test_pm3 import test_posterior_inference, \
                                    infer_params_default, \
                                    mcmc_params_default, \
                                    gen_data_params_default
import six


    :param infer_params_names: Name of inference parameters. 
    :type infer_params_names: str or list of str
    :param mcmc_params_names: Name of MCMC parameters. 
    :type mcmc_params_names: str or list of str
    :param gen_data_params_names: Name of data generation parameters. 
    :type gen_data_params_names: str or list of str

    See get_infer_paramss(), get_mcmc_paramss() and get_data_gen_paramss(). 
    """
    infer_paramss = _get_infer_paramss()
    mcmc_paramss = _get_mcmc_paramss()
    gen_data_paramss = _get_gen_data_paramss()

    infer_params_names_ = _wrap_list(infer_params_names)
    mcmc_params_names_ = _wrap_list(mcmc_params_names)
    gen_data_params_names_ = _wrap_list(gen_data_params_names)

    for ip in infer_params_names_:
        infer_params = infer_paramss[ip]
        for mp in mcmc_params_names_:
            mcmc_params = mcmc_paramss[mp]
            for gp in gen_data_params_names_:
                gen_data_params = gen_data_paramss[gp]

                print('Test condition')
                print('  infer_params_name = {}'.format(ip))
                print('  mcmc_params_name = {}'.format(mp))
                print('  gen_data_params_name = {}\n'.format(gp))


                test_posterior_inference(
