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[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[TaskId][source]

Find the set of TakId in common between the reports.

create_common_history() dict[TaskId, list[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[Figure]]) list[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: ~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])] | ~typing.Annotated[tuple[~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], ~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])]], ~pydantic.functional_validators.BeforeValidator(func=~qibocal.calibration.calibration.<lambda>, json_schema_input_type=PydanticUndefined), ~pydantic.functional_serializers.PlainSerializer(func=~qibocal.calibration.calibration.<lambda>, return_type=PydanticUndefined, when_used=always)] | list[~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])]]) tuple[str, str][source]

qibocal.web.report module

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

HTML string containing path of css file.

qibocal.web.report.report_script(path: Path)[source]

HTML string containing path of js 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.