QuLab 2.0.7__tar.gz → 2.0.8__tar.gz
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.7 → qulab-2.0.8}/PKG-INFO +1 -1
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/PKG-INFO +1 -1
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/scan.py +27 -18
- qulab-2.0.8/qulab/version.py +1 -0
- qulab-2.0.7/qulab/version.py +0 -1
- {qulab-2.0.7 → qulab-2.0.8}/LICENSE +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/MANIFEST.in +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/SOURCES.txt +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/dependency_links.txt +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/entry_points.txt +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/requires.txt +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/QuLab.egg-info/top_level.txt +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/README.md +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/pyproject.toml +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/__main__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/__main__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/config.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/dataset.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/event_queue.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/mainwindow.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/monitor.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/ploter.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/qt_compat.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/monitor/toolbar.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/curd.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/expression.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/models.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/optimize.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/query_record.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/recorder.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/server.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/scan/utils.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/__main__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/backend/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/backend/redis.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/base_dataset.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/chunk.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/dataset.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/file.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/base.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/config.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/file.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/ipy.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/models.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/record.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/report.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/models/tag.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/storage/storage.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/chat.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/device/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/device/basedevice.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/device/loader.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/device/utils.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/drivers/FakeInstrument.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/drivers/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/ipy_events.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/bencoder.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/cli.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/dhcp.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/dhcpd.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/kad.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/kcp.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/net/nginx.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/progress.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/client.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/exceptions.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/msgpack.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/msgpack.pyi +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/rpc.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/serialize.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/server.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/socket.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/utils.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/worker.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/sys/rpc/zmq_socket.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/__init__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/__main__.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/_autoplot.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/plot_layout.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/plot_seq.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/qdat.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/qulab/visualization/widgets.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/setup.cfg +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/setup.py +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/src/qulab.h +0 -0
- {qulab-2.0.7 → qulab-2.0.8}/tests/test_scan.py +0 -0
|
@@ -437,13 +437,24 @@ class Scan():
|
|
|
437
437
|
elif inspect.isawaitable(task):
|
|
438
438
|
await task
|
|
439
439
|
|
|
440
|
-
async def
|
|
440
|
+
async def run(self):
|
|
441
441
|
assymbly(self.description)
|
|
442
|
+
if isinstance(
|
|
443
|
+
self.description['database'],
|
|
444
|
+
str) and self.description['database'].startswith("tcp://"):
|
|
445
|
+
async with ZMQContextManager(
|
|
446
|
+
zmq.DEALER,
|
|
447
|
+
connect=self.description['database']) as socket:
|
|
448
|
+
self._sock = socket
|
|
449
|
+
await self._run()
|
|
450
|
+
else:
|
|
451
|
+
await self._run()
|
|
452
|
+
|
|
453
|
+
async def _run(self):
|
|
442
454
|
task = asyncio.create_task(self._update_progress())
|
|
443
455
|
self._task_pool.append(task)
|
|
444
456
|
self._variables = {'self': self}
|
|
445
|
-
|
|
446
|
-
self.description['setters'])
|
|
457
|
+
self._variables.update(self.description['consts'].copy())
|
|
447
458
|
for level, total in self.description['total'].items():
|
|
448
459
|
if total == np.inf:
|
|
449
460
|
total = None
|
|
@@ -458,18 +469,8 @@ class Scan():
|
|
|
458
469
|
self.variables[name])
|
|
459
470
|
if inspect.isawaitable(coro):
|
|
460
471
|
await coro
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
str) and self.description['database'].startswith("tcp://"):
|
|
464
|
-
async with ZMQContextManager(
|
|
465
|
-
zmq.DEALER,
|
|
466
|
-
connect=self.description['database']) as socket:
|
|
467
|
-
self._sock = socket
|
|
468
|
-
self.record = await self.create_record()
|
|
469
|
-
await self.work()
|
|
470
|
-
else:
|
|
471
|
-
self.record = await self.create_record()
|
|
472
|
-
await self.work()
|
|
472
|
+
self.record = await self.create_record()
|
|
473
|
+
await self.work()
|
|
473
474
|
for level, bar in self._bar.items():
|
|
474
475
|
bar.close()
|
|
475
476
|
|
|
@@ -479,10 +480,15 @@ class Scan():
|
|
|
479
480
|
evt.set()
|
|
480
481
|
elif inspect.isawaitable(evt):
|
|
481
482
|
await evt
|
|
482
|
-
task.cancel()
|
|
483
483
|
if self._single_step:
|
|
484
|
+
for group in self.description['order'].get(-1, []):
|
|
485
|
+
for name in group:
|
|
486
|
+
if name in self.description['getters']:
|
|
487
|
+
self.variables[name] = await call_function(
|
|
488
|
+
self.description['getters'][name], self.variables)
|
|
484
489
|
await self.emit(0, 0, 0, self.variables.copy())
|
|
485
490
|
await self.emit(-1, 0, 0, {})
|
|
491
|
+
task.cancel()
|
|
486
492
|
return self.variables
|
|
487
493
|
|
|
488
494
|
async def done(self):
|
|
@@ -497,7 +503,7 @@ class Scan():
|
|
|
497
503
|
|
|
498
504
|
def start(self):
|
|
499
505
|
import asyncio
|
|
500
|
-
self._main_task = asyncio.create_task(self.
|
|
506
|
+
self._main_task = asyncio.create_task(self.run())
|
|
501
507
|
|
|
502
508
|
async def submit(self, server='tcp://127.0.0.1:6788'):
|
|
503
509
|
assymbly(self.description)
|
|
@@ -734,7 +740,10 @@ def assymbly(description):
|
|
|
734
740
|
|
|
735
741
|
levels = {}
|
|
736
742
|
passed = set()
|
|
737
|
-
all_keys = set()
|
|
743
|
+
all_keys = set(description['consts'].keys())
|
|
744
|
+
for key in dependents:
|
|
745
|
+
all_keys.add(key)
|
|
746
|
+
all_keys.update(dependents[key])
|
|
738
747
|
for level in reversed(description['loops'].keys()):
|
|
739
748
|
tag = f'#__loop_{level}'
|
|
740
749
|
for key, deps in full_depends.items():
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.0.8"
|
qulab-2.0.7/qulab/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.0.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|