feat: snapshot the station at the end of a measurement and diff snapshots - #8521
Draft
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 1 commit into
Draft
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 1 commit into
Jens Hedegaard Nielsen (jenshnielsen) wants to merge 1 commit into
Conversation
…hots In addition to the snapshot taken when a measurement starts, a snapshot is now also taken when the measurement ends, using the same settings (``update="Only_invalid"``). It is stored in the dataset metadata under the ``end_snapshot`` key and exposed as the new ``end_snapshot`` property of the dataset. It can be disabled per measurement with ``Measurement.run(snapshot_at_end=False)`` or globally via the new ``dataset.snapshot_at_end`` config key. Add ``diff_start_end_snapshot`` and ``diff_start_end_snapshot_by_id`` to compare the start and end snapshot of a dataset, reusing the existing ``ParameterDiff`` machinery, and export them along with the existing ``diff_param_snapshots`` and ``diff_param_values_by_id`` from ``qcodes.dataset``. Add ``format_parameter_diff`` to render a ``ParameterDiff`` in a human-readable form, which is also used when printing a ``ParameterDiff``. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 84ae5582-d6ef-48bf-826b-87e071a97174
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8521 +/- ##
==========================================
+ Coverage 72.00% 72.06% +0.06%
==========================================
Files 305 305
Lines 32019 32084 +65
==========================================
+ Hits 23055 23122 +67
+ Misses 8964 8962 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In addition to the snapshot taken when a measurement starts, a snapshot is now also taken when the measurement ends, using the same settings (
update="Only_invalid"). It is stored in the dataset metadata under theend_snapshotkey and exposed as the newend_snapshotproperty of the dataset. It can be disabled per measurement withMeasurement.run(snapshot_at_end=False)or globally via the newdataset.snapshot_at_endconfig key.Add
diff_start_end_snapshotanddiff_start_end_snapshot_by_idto compare the start and end snapshot of a dataset, reusing the existingParameterDiffmachinery, and export them along with the existingdiff_param_snapshotsanddiff_param_values_by_idfromqcodes.dataset. Addformat_parameter_diffto render aParameterDiffin a human-readable form, which is also used when printing aParameterDiff.