src/estimagic/dashboard/dashboard_app.py
def _create_cds_for_dashboard(group_to_param_ids):
    """Create the ColumnDataSources for saving the criterion and parameter values.

    They will be periodically updated from the database.
    There is a ColumnDataSource for all parameters and one for the criterion value.
    The "x" column is called "iteration".

    Args:
        group_to_param_ids (dict): Keys are the groups to be plotted. The values are
            the ids of the parameters belonging to the particular group.

    Returns:
        criterion_history (bokeh.ColumnDataSource)
        params_history (bokeh.ColumnDataSource)

    """
    crit_data = {"iteration": [], "criterion": []}
    criterion_history = ColumnDataSource(crit_data, name="criterion_history_cds")

    param_ids = []
    for id_list in group_to_param_ids.values():
        param_ids += id_list
    params_data = {id_: [] for id_ in param_ids + ["iteration"]}
    params_history = ColumnDataSource(params_data, name="params_history_cds")

    return criterion_history, params_history
Create the ColumnDataSources for saving the criterion and parameter values.

    They will be periodically updated from the database.
    There is a ColumnDataSource for all parameters and one for the criterion value.
    The "x" column is called "iteration".

    Args:
        group_to_param_ids (dict): Keys are the groups to be plotted. The values are
            the ids of the parameters belonging to the particular group.

    Returns:
        criterion_history (bokeh.ColumnDataSource)
        params_history (bokeh.ColumnDataSource)

    
Create the ColumnDataSources for saving the criterion and parameter values.
They will be periodically updated from the database.
There is a ColumnDataSource for all parameters and one for the criterion value.
The "x" column is called "iteration".
Create the ColumnDataSources for saving the criterion and parameter values . They will be periodically updated from the database . There is a ColumnDataSource for all parameters and one for the criterion value . The " x " column is called " iteration " .
def _create_cds_for_dashboard(group_to_param_ids):
    crit_data = {"iteration": [], "criterion": []}
    criterion_history = ColumnDataSource(crit_data, name="criterion_history_cds")
    param_ids = []
    for id_list in group_to_param_ids.values():
        param_ids += id_list
    params_data = {id_: [] for id_ in param_ids + ["iteration"]}
    params_history = ColumnDataSource(params_data, name="params_history_cds")
    return criterion_history, params_history
def _create_cds_for_dashboard ( group_to_param_ids ) : crit_data = { "iteration" : [ ] , "criterion" : [ ] } criterion_history = ColumnDataSource ( crit_data , name = "criterion_history_cds" ) param_ids = [ ] for id_list in group_to_param_ids . values ( ) : param_ids += id_list params_data = { id_ : [ ] for id_ in param_ids + [ "iteration" ] } params_history = ColumnDataSource ( params_data , name = "params_history_cds" ) return criterion_history , params_history
Create the ColumnDataSources for saving the criterion and parameter values.
Create the ColumnDataSources for saving the criterion and parameter values .
"""Create the ColumnDataSources for saving the criterion and parameter values.

    They will be periodically updated from the database.
    There is a ColumnDataSource for all parameters and one for the criterion value.
    The "x" column is called "iteration".

    Args:
        group_to_param_ids (dict): Keys are the groups to be plotted. The values are
            the ids of the parameters belonging to the particular group.

    Returns:
        criterion_history (bokeh.ColumnDataSource)
        params_history (bokeh.ColumnDataSource)

    """
criterion_history (bokeh.ColumnDataSource)
params_history (bokeh.ColumnDataSource)
criterion_history ( bokeh . ColumnDataSource ) params_history ( bokeh . ColumnDataSource )
group_to_param_ids
Keys are the groups to be plotted. The values are
the ids of the parameters belonging to the particular group.
Keys are the groups to be plotted . The values are the ids of the parameters belonging to the particular group .