QuLab 2.4.3__cp312-cp312-macosx_10_13_universal2.whl → 2.4.5__cp312-cp312-macosx_10_13_universal2.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: QuLab
3
- Version: 2.4.3
3
+ Version: 2.4.5
4
4
  Summary: contral instruments and manage data
5
5
  Author-email: feihoo87 <feihoo87@gmail.com>
6
6
  Maintainer-email: feihoo87 <feihoo87@gmail.com>
@@ -1,14 +1,14 @@
1
1
  qulab/__init__.py,sha256=P-Mx2p4TVmL91SoxoeXcj8Qm0x4xUf5Q_FLk0Yc_gIQ,138
2
2
  qulab/__main__.py,sha256=V5jIyfuCSi5dI6jvqgH_BpXG0URd6bgneDdVCM1dGSA,545
3
3
  qulab/dicttree.py,sha256=tRRMpGZYVOLw0TEByE3_2Ss8FdOmzuGL9e1DWbs8qoY,13684
4
- qulab/fun.cpython-312-darwin.so,sha256=DR0reo7liG8smeBZGOO4aC7WjQMpoPpwKZxiDUw5_CM,126864
5
- qulab/version.py,sha256=99r6eqWDlhYTkyUzGskpwL60XOmMsdQya_XxdYPOCHA,21
4
+ qulab/fun.cpython-312-darwin.so,sha256=v-b2OzjgCFJSRqztXINgDoJNa_3RLxNx-csb9iQQeS4,126864
5
+ qulab/version.py,sha256=sAipLPNdb_IaH9sS_UwXSh0AgDCRTxME2hVBsZX2Dko,21
6
6
  qulab/executor/__init__.py,sha256=LosPzOMaljSZY1thy_Fxtbrgq7uubJszMABEB7oM7tU,101
7
7
  qulab/executor/__main__.py,sha256=soBde_CbTJvvzIU1r2W2DCfQQY4fXMiwtzsXwTfohqw,2273
8
8
  qulab/executor/load.py,sha256=jZHkEzFF8ufFAIajkRDKmHYYJxbxI3RcEbAFIbl9VQ0,6208
9
- qulab/executor/schedule.py,sha256=-jd8cr-C6gv2WbJr8OUTQceqaqeV6fgGrSZ74xLN-Fo,8999
9
+ qulab/executor/schedule.py,sha256=spevmrktVE4KQo79l9Dj9rq2cs1bPW4gxHpSxc2MHcc,9055
10
10
  qulab/executor/storage.py,sha256=M66Q5_Uc5MMfc_QAuuaaexwAz7wxBPMkeleB5nRpQmI,4621
11
- qulab/executor/transform.py,sha256=Sy1ZmzkaP4RhUMempYxcIRjuzTxbC9UikUMBKuoVleE,2148
11
+ qulab/executor/transform.py,sha256=inaOn6eqCs22ZZ0xAQl8s8YCoEACaXSwFNNu7jqdwAk,2148
12
12
  qulab/executor/utils.py,sha256=vrwk2fAfSp3YLVZfrYPvxsVPpeuE2n-4G2Ae0eqdT4s,3080
13
13
  qulab/monitor/__init__.py,sha256=nTHelnDpxRS_fl_B38TsN0njgq8eVTEz9IAnN3NbDlM,42
14
14
  qulab/monitor/__main__.py,sha256=w3yUcqq195LzSnXTkQcuC1RSFRhy4oQ_PEBmucXguME,97
@@ -89,9 +89,9 @@ qulab/visualization/plot_seq.py,sha256=UWTS6p9nfX_7B8ehcYo6UnSTUCjkBsNU9jiOeW2ca
89
89
  qulab/visualization/qdat.py,sha256=ZeevBYWkzbww4xZnsjHhw7wRorJCBzbG0iEu-XQB4EA,5735
90
90
  qulab/visualization/rot3d.py,sha256=lMrEJlRLwYe6NMBlGkKYpp_V9CTipOAuDy6QW_cQK00,734
91
91
  qulab/visualization/widgets.py,sha256=6KkiTyQ8J-ei70LbPQZAK35wjktY47w2IveOa682ftA,3180
92
- QuLab-2.4.3.dist-info/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
93
- QuLab-2.4.3.dist-info/METADATA,sha256=qpsCu1x8EOI25A5TeY6WGCeR7UCbNYUqUX_hUJ5pBx0,3698
94
- QuLab-2.4.3.dist-info/WHEEL,sha256=iDXcyuxg-66TzzqHGH-kgw_HJdaJE_1RHznrvPNCSNs,115
95
- QuLab-2.4.3.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
96
- QuLab-2.4.3.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
97
- QuLab-2.4.3.dist-info/RECORD,,
92
+ QuLab-2.4.5.dist-info/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
93
+ QuLab-2.4.5.dist-info/METADATA,sha256=s5W3328ohKilulDSJ7uj4yWBC3hSdxK1vrTmIfBIoME,3698
94
+ QuLab-2.4.5.dist-info/WHEEL,sha256=iDXcyuxg-66TzzqHGH-kgw_HJdaJE_1RHznrvPNCSNs,115
95
+ QuLab-2.4.5.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
96
+ QuLab-2.4.5.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
97
+ QuLab-2.4.5.dist-info/RECORD,,
@@ -158,6 +158,7 @@ def diagnose(node, code_path: str | Path, state_path: str | Path,
158
158
  result = check_data(node, code_path, state_path, session_id)
159
159
  # in spec case
160
160
  if result.in_spec:
161
+ logger.debug(f'"{node}": Checked! In spec, no need to diagnose')
161
162
  return False
162
163
  # bad data case
163
164
  recalibrated = []
@@ -166,15 +167,12 @@ def diagnose(node, code_path: str | Path, state_path: str | Path,
166
167
  diagnose(n, code_path, state_path, session_id)
167
168
  for n in get_dependents(node, code_path)
168
169
  ]
169
- if not any(recalibrated):
170
+ if not any(recalibrated) and recalibrated:
171
+ logger.debug(f'"{node}": no dependents recalibrated.')
170
172
  return False
171
173
  # calibrate
172
- if result.fully_calibrated and result.in_spec:
173
- pass
174
- else:
175
- logger.debug(
176
- f'recalibrate "{node}" because some dependents recalibrated')
177
- result = calibrate(node, code_path, state_path, session_id)
174
+ logger.debug(f'recalibrate "{node}" because some dependents recalibrated')
175
+ result = calibrate(node, code_path, state_path, session_id)
178
176
  if result.bad_data or not result.in_spec:
179
177
  raise CalibrationFailedError(
180
178
  f'"{node}": All dependents passed, but calibration failed!')
@@ -57,7 +57,7 @@ def params_to_result(params: tuple) -> Result:
57
57
  if state in ['In spec', 'OK']:
58
58
  result.in_spec = True
59
59
  result.bad_data = False
60
- elif state == ['Bad data', 'Bad']:
60
+ elif state in ['Bad data', 'Bad']:
61
61
  result.bad_data = True
62
62
  result.in_spec = False
63
63
  else:
Binary file
qulab/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.4.3"
1
+ __version__ = "2.4.5"
File without changes
File without changes