QuLab 2.7.10__cp312-cp312-macosx_10_13_universal2.whl → 2.7.12__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.
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/METADATA +1 -1
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/RECORD +10 -10
- qulab/cli/config.py +16 -1
- qulab/executor/schedule.py +11 -4
- qulab/fun.cpython-312-darwin.so +0 -0
- qulab/version.py +1 -1
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/LICENSE +0 -0
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/WHEEL +0 -0
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/entry_points.txt +0 -0
- {QuLab-2.7.10.dist-info → QuLab-2.7.12.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,17 @@
|
|
1
1
|
qulab/__init__.py,sha256=KJcUcZ5qXY6wlAoirzK_B-dgtDjsLmOE671v3gcXO_c,286
|
2
2
|
qulab/__main__.py,sha256=fjaRSL_uUjNIzBGNgjlGswb9TJ2VD5qnkZHW3hItrD4,68
|
3
3
|
qulab/dicttree.py,sha256=tRRMpGZYVOLw0TEByE3_2Ss8FdOmzuGL9e1DWbs8qoY,13684
|
4
|
-
qulab/fun.cpython-312-darwin.so,sha256=
|
4
|
+
qulab/fun.cpython-312-darwin.so,sha256=pi1norokbydAyFeLLHBgo6hQHWTXUd91Yz7dnZAdiJ0,126864
|
5
5
|
qulab/typing.py,sha256=vg62sGqxuD9CI5677ejlzAmf2fVdAESZCQjAE_xSxPg,69
|
6
6
|
qulab/utils.py,sha256=JIXMSmZU0uYfKG_tzawpK7vRNPRir_hJE8JlqkVLX2o,1260
|
7
|
-
qulab/version.py,sha256=
|
7
|
+
qulab/version.py,sha256=lU1Df-qhbluQkmwozAIUZOHD7dGWclt66rz4f2uhpqA,22
|
8
8
|
qulab/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
qulab/cli/commands.py,sha256=tgDIkkeIoasQXAifJZ6NU8jDgpNgb2a-B0C4nF0evrE,559
|
10
|
-
qulab/cli/config.py,sha256=
|
10
|
+
qulab/cli/config.py,sha256=Ei7eSYnbwPPlluDnm8YmWONYiI4g7WtvlZGQdr1Z6vo,3688
|
11
11
|
qulab/executor/__init__.py,sha256=LosPzOMaljSZY1thy_Fxtbrgq7uubJszMABEB7oM7tU,101
|
12
12
|
qulab/executor/cli.py,sha256=gGka2M6xccfM8facsIJ2qZ1y2Yx8C4BRhc1JG6nK9mo,8932
|
13
13
|
qulab/executor/load.py,sha256=4FY_SwumLDUewC265v4j_ZGGpfYOgH4c8PtglYcWpBw,18077
|
14
|
-
qulab/executor/schedule.py,sha256=
|
14
|
+
qulab/executor/schedule.py,sha256=YmVD0NH2YouAjWHjky_0IVfYv23J9upYFOxy8gVfJqw,18454
|
15
15
|
qulab/executor/storage.py,sha256=gI6g28BmKKEZ_Pl-hFwvpiOj3mF8Su-yjj3hfMXs1VY,11630
|
16
16
|
qulab/executor/transform.py,sha256=4DyGXv1Iw36cCPqbqXlsn0Lw6gFjQpp_6Hcta50YQxU,2181
|
17
17
|
qulab/executor/utils.py,sha256=cF6-2jlvlHyTjNHdxXKG04Fjfm3_3wfDQAF1G8DQphk,5686
|
@@ -94,9 +94,9 @@ qulab/visualization/plot_seq.py,sha256=UWTS6p9nfX_7B8ehcYo6UnSTUCjkBsNU9jiOeW2ca
|
|
94
94
|
qulab/visualization/qdat.py,sha256=ZeevBYWkzbww4xZnsjHhw7wRorJCBzbG0iEu-XQB4EA,5735
|
95
95
|
qulab/visualization/rot3d.py,sha256=lMrEJlRLwYe6NMBlGkKYpp_V9CTipOAuDy6QW_cQK00,734
|
96
96
|
qulab/visualization/widgets.py,sha256=6KkiTyQ8J-ei70LbPQZAK35wjktY47w2IveOa682ftA,3180
|
97
|
-
QuLab-2.7.
|
98
|
-
QuLab-2.7.
|
99
|
-
QuLab-2.7.
|
100
|
-
QuLab-2.7.
|
101
|
-
QuLab-2.7.
|
102
|
-
QuLab-2.7.
|
97
|
+
QuLab-2.7.12.dist-info/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
|
98
|
+
QuLab-2.7.12.dist-info/METADATA,sha256=XO2FY8TwAPQk7FAnVETtmCVj_II9n12tnTeOD1oR7lI,3699
|
99
|
+
QuLab-2.7.12.dist-info/WHEEL,sha256=iDXcyuxg-66TzzqHGH-kgw_HJdaJE_1RHznrvPNCSNs,115
|
100
|
+
QuLab-2.7.12.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
|
101
|
+
QuLab-2.7.12.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
|
102
|
+
QuLab-2.7.12.dist-info/RECORD,,
|
qulab/cli/config.py
CHANGED
@@ -68,6 +68,10 @@ def log_options(func):
|
|
68
68
|
type=click.Path(),
|
69
69
|
default=lambda: get_config_value("log", Path),
|
70
70
|
help=f"Log file path")
|
71
|
+
@click.option("--debug-log",
|
72
|
+
type=click.Path(),
|
73
|
+
default=lambda: get_config_value("debug_log", Path),
|
74
|
+
help=f"Debug log file path")
|
71
75
|
@click.option("--quiet",
|
72
76
|
is_flag=True,
|
73
77
|
default=get_config_value("quiet", bool),
|
@@ -76,6 +80,7 @@ def log_options(func):
|
|
76
80
|
def wrapper(*args, **kwargs):
|
77
81
|
debug = bool(kwargs.pop("debug"))
|
78
82
|
log = kwargs.pop("log")
|
83
|
+
debug_log = kwargs.pop("debug_log")
|
79
84
|
quiet = bool(kwargs.pop("quiet"))
|
80
85
|
|
81
86
|
if debug:
|
@@ -85,7 +90,17 @@ def log_options(func):
|
|
85
90
|
|
86
91
|
handlers = []
|
87
92
|
if log is not None:
|
88
|
-
handlers.append(
|
93
|
+
handlers.append(
|
94
|
+
dict(sink=log,
|
95
|
+
level="INFO",
|
96
|
+
rotation="monday at 7:00",
|
97
|
+
compression="zip"))
|
98
|
+
if debug_log is not None:
|
99
|
+
handlers.append(
|
100
|
+
dict(sink=debug_log,
|
101
|
+
level="DEBUG",
|
102
|
+
rotation="monday at 7:00",
|
103
|
+
compression="zip"))
|
89
104
|
if not quiet or debug:
|
90
105
|
handlers.append(dict(sink=sys.stderr, level=log_level))
|
91
106
|
|
qulab/executor/schedule.py
CHANGED
@@ -142,7 +142,7 @@ def call_plot(node: WorkflowType, report: Report, check=False):
|
|
142
142
|
|
143
143
|
|
144
144
|
def call_check(workflow: WorkflowType, session_id: str, state_path: Path):
|
145
|
-
report = get_cache(session_id, (workflow, 'check'))
|
145
|
+
report = get_cache(session_id, (workflow.__workflow_id__, 'check'))
|
146
146
|
if report is not None:
|
147
147
|
logger.debug(f'Cache hit for "{workflow.__workflow_id__}:check"')
|
148
148
|
return report
|
@@ -164,12 +164,12 @@ def call_check(workflow: WorkflowType, session_id: str, state_path: Path):
|
|
164
164
|
|
165
165
|
save_report(workflow.__workflow_id__, report, state_path)
|
166
166
|
|
167
|
-
set_cache(session_id, (workflow, 'check'), report)
|
167
|
+
set_cache(session_id, (workflow.__workflow_id__, 'check'), report)
|
168
168
|
return report
|
169
169
|
|
170
170
|
|
171
171
|
def call_calibrate(workflow: WorkflowType, session_id: str, state_path: Path):
|
172
|
-
report = get_cache(session_id, (workflow, 'calibrate'))
|
172
|
+
report = get_cache(session_id, (workflow.__workflow_id__, 'calibrate'))
|
173
173
|
if report is not None:
|
174
174
|
logger.debug(f'Cache hit for "{workflow.__workflow_id__}:calibrate"')
|
175
175
|
return report
|
@@ -191,7 +191,7 @@ def call_calibrate(workflow: WorkflowType, session_id: str, state_path: Path):
|
|
191
191
|
|
192
192
|
save_report(workflow.__workflow_id__, report, state_path)
|
193
193
|
|
194
|
-
set_cache(session_id, (workflow, 'calibrate'), report)
|
194
|
+
set_cache(session_id, (workflow.__workflow_id__, 'calibrate'), report)
|
195
195
|
return report
|
196
196
|
|
197
197
|
|
@@ -387,6 +387,7 @@ def diagnose(workflow: WorkflowType, code_path: str | Path,
|
|
387
387
|
f'"{workflow.__workflow_id__}": All dependents passed, but calibration failed!'
|
388
388
|
)
|
389
389
|
update_parameters(report, state_path)
|
390
|
+
logger.debug(f'"{workflow.__workflow_id__}": parameters updated')
|
390
391
|
return True
|
391
392
|
|
392
393
|
|
@@ -451,6 +452,9 @@ def maintain(workflow: WorkflowType,
|
|
451
452
|
)
|
452
453
|
if not freeze:
|
453
454
|
update_parameters(report, state_path)
|
455
|
+
logger.debug(f'"{workflow.__workflow_id__}": parameters updated')
|
456
|
+
else:
|
457
|
+
logger.debug(f'"{workflow.__workflow_id__}": parameters freezed')
|
454
458
|
return
|
455
459
|
|
456
460
|
|
@@ -471,4 +475,7 @@ def run(workflow: WorkflowType,
|
|
471
475
|
)
|
472
476
|
if not freeze:
|
473
477
|
update_parameters(report, state_path)
|
478
|
+
logger.debug(f'"{workflow.__workflow_id__}": parameters updated')
|
479
|
+
else:
|
480
|
+
logger.debug(f'"{workflow.__workflow_id__}": parameters freezed')
|
474
481
|
return
|
qulab/fun.cpython-312-darwin.so
CHANGED
Binary file
|
qulab/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.7.
|
1
|
+
__version__ = "2.7.12"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|