QuLab 2.0.4__cp311-cp311-macosx_10_9_universal2.whl → 2.0.5__cp311-cp311-macosx_10_9_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.0.4.dist-info → QuLab-2.0.5.dist-info}/METADATA +1 -1
- {QuLab-2.0.4.dist-info → QuLab-2.0.5.dist-info}/RECORD +10 -10
- qulab/fun.cpython-311-darwin.so +0 -0
- qulab/scan/recorder.py +10 -0
- qulab/scan/scan.py +9 -2
- qulab/version.py +1 -1
- {QuLab-2.0.4.dist-info → QuLab-2.0.5.dist-info}/LICENSE +0 -0
- {QuLab-2.0.4.dist-info → QuLab-2.0.5.dist-info}/WHEEL +0 -0
- {QuLab-2.0.4.dist-info → QuLab-2.0.5.dist-info}/entry_points.txt +0 -0
- {QuLab-2.0.4.dist-info → QuLab-2.0.5.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
qulab/__init__.py,sha256=8zLGg-DfQhnDl2Ky0n-zXpN-8e-g7iR0AcaI4l4Vvpk,32
|
|
2
2
|
qulab/__main__.py,sha256=eupSsrNVfnTFRpjgrY_knPvZIs0-Dk577LaN7qB15hI,487
|
|
3
|
-
qulab/fun.cpython-311-darwin.so,sha256=
|
|
4
|
-
qulab/version.py,sha256=
|
|
3
|
+
qulab/fun.cpython-311-darwin.so,sha256=tmi-ngHRpiUsnT1Zb28Q15VbLuhLmjntXm6yeqW-WoA,159616
|
|
4
|
+
qulab/version.py,sha256=W2bKmLHMwuaZj0IuSoqothHJumPaUDyIwYJTzE6Hdd0,21
|
|
5
5
|
qulab/monitor/__init__.py,sha256=nTHelnDpxRS_fl_B38TsN0njgq8eVTEz9IAnN3NbDlM,42
|
|
6
6
|
qulab/monitor/__main__.py,sha256=w3yUcqq195LzSnXTkQcuC1RSFRhy4oQ_PEBmucXguME,97
|
|
7
7
|
qulab/monitor/config.py,sha256=fQ5JcsMApKc1UwANEnIvbDQZl8uYW0tle92SaYtX9lI,744
|
|
@@ -18,8 +18,8 @@ qulab/scan/expression.py,sha256=-aTYbjFQNI1mwOcoSBztqhKfGJpu_n4a1QnWro_xnTU,1569
|
|
|
18
18
|
qulab/scan/models.py,sha256=S8Q9hC8nOzxyoNB10EYg-miDKqoNMnjyAECjD-TuORw,17117
|
|
19
19
|
qulab/scan/optimize.py,sha256=vErjRTCtn2MwMF5Xyhs1P4gHF2IFHv_EqxsUvH_4y7k,2287
|
|
20
20
|
qulab/scan/query_record.py,sha256=BVkNgv3yfbMXX_Kguq18fvowKOBmBiiTvUwj_CqpiF4,11493
|
|
21
|
-
qulab/scan/recorder.py,sha256=
|
|
22
|
-
qulab/scan/scan.py,sha256=
|
|
21
|
+
qulab/scan/recorder.py,sha256=A-vuwsjrGItsVF0e5xsqTscBkoHNN0Tyhlt4XL2Xavw,17938
|
|
22
|
+
qulab/scan/scan.py,sha256=0BFcArvjePwcXCSFRhjLhIMWbB1hY3uzCRLeYBx5Sq0,25931
|
|
23
23
|
qulab/scan/server.py,sha256=W8z3vr0cqSSKWzIG6_b0d-lpBpDXGpHSwN6VJuv3w9U,2844
|
|
24
24
|
qulab/scan/utils.py,sha256=n5yquKlz2QYMzciPgD9vkpBJVgzVzOqAlfvB4Qu6oOk,2551
|
|
25
25
|
qulab/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -77,9 +77,9 @@ qulab/visualization/plot_layout.py,sha256=clNw9QjE_kVNpIIx2Ob4YhAz2fucPGMuzkoIrO
|
|
|
77
77
|
qulab/visualization/plot_seq.py,sha256=lphYF4VhkEdc_wWr1kFBwrx2yujkyFPFaJ3pjr61awI,2693
|
|
78
78
|
qulab/visualization/qdat.py,sha256=ZeevBYWkzbww4xZnsjHhw7wRorJCBzbG0iEu-XQB4EA,5735
|
|
79
79
|
qulab/visualization/widgets.py,sha256=6KkiTyQ8J-ei70LbPQZAK35wjktY47w2IveOa682ftA,3180
|
|
80
|
-
QuLab-2.0.
|
|
81
|
-
QuLab-2.0.
|
|
82
|
-
QuLab-2.0.
|
|
83
|
-
QuLab-2.0.
|
|
84
|
-
QuLab-2.0.
|
|
85
|
-
QuLab-2.0.
|
|
80
|
+
QuLab-2.0.5.dist-info/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
|
|
81
|
+
QuLab-2.0.5.dist-info/METADATA,sha256=OGedkODyMxtxLzKPgZ_wC6LVhNnwgyQ5fQ5lamhWYOw,3510
|
|
82
|
+
QuLab-2.0.5.dist-info/WHEEL,sha256=eupBwbXGAhwNAPJSvj5BiShZwdZO8jnQ5yHfv-9aUGw,115
|
|
83
|
+
QuLab-2.0.5.dist-info/entry_points.txt,sha256=ohBzutEnQimP_BZWiuXdSliu4QAYSHHcN0PZD8c7ZCY,46
|
|
84
|
+
QuLab-2.0.5.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
|
|
85
|
+
QuLab-2.0.5.dist-info/RECORD,,
|
qulab/fun.cpython-311-darwin.so
CHANGED
|
Binary file
|
qulab/scan/recorder.py
CHANGED
|
@@ -305,6 +305,16 @@ class Record():
|
|
|
305
305
|
with open(self._file, 'wb') as f:
|
|
306
306
|
dill.dump(self, f)
|
|
307
307
|
|
|
308
|
+
def __repr__(self):
|
|
309
|
+
return f"<Record: id={self.id} app={self.description['app']}, keys={self.keys()}>"
|
|
310
|
+
|
|
311
|
+
# def _repr_html_(self):
|
|
312
|
+
# return f"""
|
|
313
|
+
# <h3>Record: id={self.id}, app={self.description['app']}</h3>
|
|
314
|
+
# <p>keys={self.keys()}</p>
|
|
315
|
+
# <p>dims={self.dims}</p>
|
|
316
|
+
# """
|
|
317
|
+
|
|
308
318
|
|
|
309
319
|
class Request():
|
|
310
320
|
__slots__ = ['sock', 'identity', 'msg', 'method']
|
qulab/scan/scan.py
CHANGED
|
@@ -174,6 +174,7 @@ class Scan():
|
|
|
174
174
|
tags: tuple[str] = (),
|
|
175
175
|
database: str | Path
|
|
176
176
|
| None = f'tcp://127.0.0.1:{default_record_port}',
|
|
177
|
+
dump_globals: bool = False,
|
|
177
178
|
mixin=None):
|
|
178
179
|
self.id = task_uuid()
|
|
179
180
|
self.record = None
|
|
@@ -185,7 +186,7 @@ class Scan():
|
|
|
185
186
|
'consts': {},
|
|
186
187
|
'functions': {},
|
|
187
188
|
'optimizers': {},
|
|
188
|
-
'namespace': {},
|
|
189
|
+
'namespace': {} if dump_globals else None,
|
|
189
190
|
'actions': {},
|
|
190
191
|
'dependents': {},
|
|
191
192
|
'order': {},
|
|
@@ -208,6 +209,7 @@ class Scan():
|
|
|
208
209
|
self._hide_pattern_re = re.compile('|'.join(self.description['hiden']))
|
|
209
210
|
self._task_queue = asyncio.Queue()
|
|
210
211
|
self._task_pool = []
|
|
212
|
+
self._single_step = True
|
|
211
213
|
|
|
212
214
|
def __del__(self):
|
|
213
215
|
try:
|
|
@@ -448,6 +450,9 @@ class Scan():
|
|
|
448
450
|
elif inspect.isawaitable(evt):
|
|
449
451
|
await evt
|
|
450
452
|
task.cancel()
|
|
453
|
+
if self._single_step:
|
|
454
|
+
await self.emit(0, 0, 0, self.variables.copy())
|
|
455
|
+
await self.emit(-1, 0, 0, {})
|
|
451
456
|
return self.variables
|
|
452
457
|
|
|
453
458
|
async def done(self):
|
|
@@ -504,6 +509,7 @@ class Scan():
|
|
|
504
509
|
self._current_level += 1
|
|
505
510
|
if await self._filter(variables, self.current_level - 1):
|
|
506
511
|
yield variables
|
|
512
|
+
self._single_step = False
|
|
507
513
|
asyncio.create_task(
|
|
508
514
|
self.emit(self.current_level - 1, step, position,
|
|
509
515
|
variables.copy()))
|
|
@@ -614,7 +620,8 @@ def assymbly(description):
|
|
|
614
620
|
import __main__
|
|
615
621
|
from IPython import get_ipython
|
|
616
622
|
|
|
617
|
-
description['namespace']
|
|
623
|
+
if isinstance(description['namespace'], dict):
|
|
624
|
+
description['namespace'] = dump_globals()
|
|
618
625
|
|
|
619
626
|
ipy = get_ipython()
|
|
620
627
|
if ipy is not None:
|
qulab/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.0.
|
|
1
|
+
__version__ = "2.0.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|