chore: add t1 (from rebase) #29
Merged
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.
Summary
Pre-commit Compliance: T1 Relaxation Time Measurement).
This PR focuses solely on pre-commit (pylint/black) compliance for the resonator spectroscopy versus power calibration files.
Files Modified
1.
calibrations/1Q_calibrations/05_T1.pyChanges:
"""T1 relaxation time measurement calibration."""(line 1)from dataclasses import asdictfrom line 4 to line 3, placing it in the standard library import section before third-party importsanalyse_datafunction into two lines to comply with 120-character limit"""Allow the user to locally set the node parameters for debugging purposes."""tocustom_paramfunction (line 57)"""Save the node results and state."""tosave_resultsfunction (line 235)Pylint violations fixed:
2.
calibration_utils/T1/__init__.pyChanges:
"""T1 relaxation time measurement calibration utilities."""(line 1)Pylint violations fixed:
3.
calibration_utils/T1/analysis.pyChanges:
"""T1 relaxation time analysis functions."""(line 1)from dataclasses import dataclassto line 4 (standard library section)from typing import Tupleto line 5 (standard library section)from qualibrateandfrom qualibration_libsimports together"""Process the raw dataset by converting IQ data to voltage if state discrimination is not used."""toprocess_raw_datasetfunction (line 61).__float__()tofloat()fort1andt1_errorvalues.__bool__()tobool()forsuccessvaluePylint violations fixed:
4.
calibration_utils/T1/parameters.pyChanges:
"""Parameters for T1 relaxation time measurement calibration."""(line 1)"""Node-specific parameters for T1 measurement."""toNodeSpecificParametersclass (line 9)"""Combined parameters for T1 relaxation time measurement calibration."""toParametersclass (line 22)Pylint violations fixed:
5.
calibration_utils/T1/plotting.pyChanges:
"""Plotting functions for T1 relaxation time measurement."""(line 1)from typing import Listinto its own standard library sectionxarray,matplotlib)dict(facecolor="white", alpha=0.5)to{"facecolor": "white", "alpha": 0.5}Pylint violations fixed: