qibocal.web package#

Submodules#

qibocal.web.compared_report module#

class qibocal.web.compared_report.ComparedReport(report_paths: list[pathlib.Path], folder: ~pathlib.Path, meta: dict, history: dict = <factory>)[source]#

Bases: object

Class for comparison of two qibocal reports.

report_paths: list[pathlib.Path]#

List of paths of qibocal reports to compare.

folder: Path#

Generated report path.

meta: dict#

Meta data.

history: dict#

History of protocols with same id in both reports.

history_uids() set[qibocal.auto.task.TaskId][source]#

Find the set of TakId in common between the reports.

create_common_history() dict[qibocal.auto.task.TaskId, list[qibocal.auto.history.History]][source]#

Obtain histories of common TaskIds from the reports.

static routine_name(routine: TaskId) str[source]#

Prettify routine’s name for report headers.

routine_targets(task_id: TaskId)[source]#

Extract local targets parameter from Task.

If not available use the global ones.

merge_plots(plots: list[list[plotly.graph_objs._figure.Figure]]) list[plotly.graph_objs._figure.Figure][source]#

Merge plots from different reports.

Scatter plots are plotted in the same figure. Heatmaps are vertically stacked.

plotter(nodes: list[qibocal.auto.task.Completed], target: Union[str, int, Tuple[Union[str, int], Union[str, int]], list[Union[str, int]]]) tuple[str, str][source]#

qibocal.web.report module#

qibocal.web.report.report_css_styles(styles_path: Path)[source]#

HTML string containing path of css file.

class qibocal.web.report.Report(path: Path, history: History, meta: dict, plotter: Callable)[source]#

Bases: object

Report generation class.

path: Path#

Path with calibration data.

history: History#

History of protocols.

meta: dict#

Meta data.

plotter: Callable#

Plotting function to generate html.

static routine_name(routine: TaskId)[source]#

Prettify routine’s name for report headers.

routine_targets(task_id: TaskId)[source]#

Extract local targets parameter from Task.

If not available use the global ones.