diff --git a/src/qibocal/cli/autocalibration.py b/src/qibocal/cli/autocalibration.py index 520ad2348..57f3a6638 100644 --- a/src/qibocal/cli/autocalibration.py +++ b/src/qibocal/cli/autocalibration.py @@ -61,9 +61,12 @@ def autocalibrate(runcard, folder, force, update): for _ in executor.run(mode=ExecutionMode.autocalibration): report = ReportBuilder(path, qubits, executor, meta, executor.history) report.run(path) - - e = datetime.datetime.now(datetime.timezone.utc) - meta["end-time"] = e.strftime("%H:%M:%S") + # meta needs to be updated after each report to show correct end-time + e = datetime.datetime.now(datetime.timezone.utc) + meta["end-time"] = e.strftime("%H:%M:%S") + # dump updated meta + meta = add_timings_to_meta(meta, executor.history) + (path / META).write_text(json.dumps(meta, indent=4)) # stop and disconnect platform if platform is not None: @@ -73,7 +76,3 @@ def autocalibrate(runcard, folder, force, update): # dump updated runcard if platform is not None: dump_runcard(platform, path / UPDATED_PLATFORM) - - # dump updated meta - meta = add_timings_to_meta(meta, executor.history) - (path / META).write_text(json.dumps(meta, indent=4)) diff --git a/src/qibocal/web/templates/autocalibration.html b/src/qibocal/web/templates/autocalibration.html deleted file mode 100644 index 3731fd924..000000000 --- a/src/qibocal/web/templates/autocalibration.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - - {% if report %} - {{ report.title }} - {% else %} - Qibocal {{version}} - {% endif %} - - - - - - - {% if is_static %} - - - - - {{ css_styles }} - {% else %} - - {% endif %} - - - - - - - -
- - - -
- - {% if report.path %} -
-

{{ report.title }}

- -
-

- Platform: {{ report.metadata.get('platform')}}
- Run date: {{ report.metadata.get('date') }}
- Start time (UTC): {{ report.metadata.get('start-time') }}
- End time (UTC): {{ report.metadata.get('end-time') }} -

-

- Summary

- -

In the table below we show the libraries and respective versions used in {{ report.title }}.

- -
- - - - - - - - - {% for library, version in report.metadata.get('versions').items() %} - - - - - {% endfor %} - -
LibraryVersion
{{ library }}{{ version }}
-
- -

- Actions

-

Please find below data generated by actions:

- - {% for task in report.history %} - -
-

- {{ report.routine_name(*task) }}

- {% set local_qubits=report.routine_qubits(task) %} - {% set qubits = local_qubits if local_qubits != [] else report.qubits%} - {% for qubit in report.routine_qubits(task) %} -
-
- {{ header }} - Qubit {{ qubit }}
- - - {% set figures, fitting_report = report.plot(task, qubit) %} - {% if "No fitting data" not in fitting_report %} - {% set fitting_params= fitting_report.split('
') %} -
- - - - - - - - - - {% for row in fitting_params %} - {% if row != '' %} - {% set run = row.split('|') %} - {% set fparam_value = run[1].split(':') %} - - - - - - {% endif %} - {% endfor %} - -
qubit Fitting Parameter Value
{{ run[0] }}{{ fparam_value[0] }}{{ fparam_value[1] }}
-
- {% endif %} - {{ figures }} - -
- {% endfor %} -
- {% endfor %} - {% endif %} -
-
- - - - - - - - diff --git a/src/qibocal/web/templates/template.html b/src/qibocal/web/templates/template.html index 245a00069..fb1daefda 100644 --- a/src/qibocal/web/templates/template.html +++ b/src/qibocal/web/templates/template.html @@ -63,15 +63,13 @@ Actions
- {% for routine, iteration in report.history %} - {% endfor %}
@@ -132,7 +130,7 @@

{{ report.title }}

{% for task_uid in report.history %} -
+

{{ report.routine_name(*task_uid) }}