solarforecastarbiter.reports.figures.bokeh_figures.construct_metrics_cds

solarforecastarbiter.reports.figures.bokeh_figures.construct_metrics_cds(metrics, rename=None)[source]

Possibly bad assumptions: * metrics contains keys: name, Total, etc.

Parameters:
  • metrics (list of datamodel.MetricResults) – Each metric dict is for a different forecast. Forecast name is specified by the name key.
  • rename (function or None) – Function of one argument that is applied to each forecast name.
Returns:

cds (bokeh.models.ColumnDataSource) – ColumnDataSource with indices ‘name’, ‘abbrev’, ‘category’, ‘metric’, and ‘value’.