QuLab 2.7.2__cp312-cp312-win_amd64.whl → 2.7.3__cp312-cp312-win_amd64.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.7.2
3
+ Version: 2.7.3
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,15 +1,15 @@
1
1
  qulab/__init__.py,sha256=F4TiURMBaXkAc0evuYi-aan00II4hzMHrOs0GfooLtg,292
2
2
  qulab/__main__.py,sha256=FL4YsGZL1jEtmcPc5WbleArzhOHLMsWl7OH3O-1d1ss,72
3
3
  qulab/dicttree.py,sha256=ZoSJVWK4VMqfzj42gPb_n5RqLlM6K1Me0WmLIfLEYf8,14195
4
- qulab/fun.cp312-win_amd64.pyd,sha256=9pNY7XZJrtJaUZqlT7gTSLI3cDaIZwhJDN_2v02-IRc,32256
4
+ qulab/fun.cp312-win_amd64.pyd,sha256=4av4AeMZGp-9kkfGzppci9F6OfTKWC5NoGh5Kv-57Ks,32256
5
5
  qulab/typing.py,sha256=3c0eKa1avEHIi5wPvh3-4l6Of5mu5Rn1MWPnMeLGNX0,71
6
6
  qulab/utils.py,sha256=UyZNPIyvis5t2MJBkXXLO5EmYP3mQZbt87zmYAHgoyk,1291
7
- qulab/version.py,sha256=JTqj-XIuRPWEFFyND2mJjBdnG93QHlAniTLmsmdDwwY,21
7
+ qulab/version.py,sha256=y99pEuN5aYbS8B82oaXdTpzvQub21umDXa0ybjLhtPQ,21
8
8
  qulab/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  qulab/cli/commands.py,sha256=6xd2eYw32k1NmfAuYSu__1kaP12Oz1QVqwbkYXdWno4,588
10
10
  qulab/cli/config.py,sha256=tNmH4ggdgrFqcQa2WZKLpidiYTg95_UnT0paDJ4fi4c,3204
11
11
  qulab/executor/__init__.py,sha256=LosPzOMaljSZY1thy_Fxtbrgq7uubJszMABEB7oM7tU,101
12
- qulab/executor/cli.py,sha256=ZELMwczk_BKvEiVMQ280l4wcqakfeknvyMZzQKcv77E,8368
12
+ qulab/executor/cli.py,sha256=Wc1SWfPsg9mjooV-kR9jvMqt0c2dXDwdQIJDySzNpqs,8932
13
13
  qulab/executor/load.py,sha256=QKe2qs-kCPp0PjvnVMR5XVgSa1IkN5BSHkNPZ2EpC38,18007
14
14
  qulab/executor/schedule.py,sha256=YRAYs0PgR0mhhy4rJX8Ddi65peSfh7SfsvudVjLJQAU,15248
15
15
  qulab/executor/storage.py,sha256=-v7Yd1SrLa8Uy2JHHKFJN1Qp48PPgtWhHC7kcFdACLo,10546
@@ -94,9 +94,9 @@ qulab/visualization/plot_seq.py,sha256=Uo1-dB1YE9IN_A9tuaOs9ZG3S5dKDQ_l98iD2Wbxp
94
94
  qulab/visualization/qdat.py,sha256=HubXFu4nfcA7iUzghJGle1C86G6221hicLR0b-GqhKQ,5887
95
95
  qulab/visualization/rot3d.py,sha256=jGHJcqj1lEWBUV-W4GUGONGacqjrYvuFoFCwPse5h1Y,757
96
96
  qulab/visualization/widgets.py,sha256=HcYwdhDtLreJiYaZuN3LfofjJmZcLwjMfP5aasebgDo,3266
97
- QuLab-2.7.2.dist-info/LICENSE,sha256=b4NRQ-GFVpJMT7RuExW3NwhfbrYsX7AcdB7Gudok-fs,1086
98
- QuLab-2.7.2.dist-info/METADATA,sha256=4wC0RLM9cdrIH8UfS1oPBJR8uwOeJCdqc7xOiCtlCd8,3803
99
- QuLab-2.7.2.dist-info/WHEEL,sha256=cRmSBGD-cl98KkuHMNqv9Ac9L9_VqTvcBYwpIvxN0cg,101
100
- QuLab-2.7.2.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
101
- QuLab-2.7.2.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
102
- QuLab-2.7.2.dist-info/RECORD,,
97
+ QuLab-2.7.3.dist-info/LICENSE,sha256=b4NRQ-GFVpJMT7RuExW3NwhfbrYsX7AcdB7Gudok-fs,1086
98
+ QuLab-2.7.3.dist-info/METADATA,sha256=ZBSTcuLTVhpL_USqQZl6HJk7wtBpz64ijcxxSOjaC1U,3803
99
+ QuLab-2.7.3.dist-info/WHEEL,sha256=cRmSBGD-cl98KkuHMNqv9Ac9L9_VqTvcBYwpIvxN0cg,101
100
+ QuLab-2.7.3.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
101
+ QuLab-2.7.3.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
102
+ QuLab-2.7.3.dist-info/RECORD,,
qulab/executor/cli.py CHANGED
@@ -17,6 +17,16 @@ from .transform import set_config_api
17
17
  from .utils import workflow_template
18
18
 
19
19
 
20
+ @logger.catch(reraise=True)
21
+ def boot(script_path):
22
+ """Run a script in a new terminal."""
23
+ import sys
24
+
25
+ from qulab.utils import run_detached_with_terminal
26
+
27
+ run_detached_with_terminal(sys.executable + ' ' + script_path)
28
+
29
+
20
30
  @logger.catch(reraise=True)
21
31
  def check_toplogy(workflow: WorkflowType, code_path: str | Path) -> dict:
22
32
  graph = {}
@@ -51,8 +61,16 @@ def command_option(command_name):
51
61
  '-a',
52
62
  default=lambda: get_config_value("api", str, command_name),
53
63
  help='The modlule name of the api.')
64
+ @click.option(
65
+ '--bootstrap',
66
+ '-b',
67
+ default=lambda: get_config_value("bootstrap", Path, command_name),
68
+ help='The path of the bootstrap.')
54
69
  @functools.wraps(func)
55
70
  def wrapper(*args, **kwargs):
71
+ bootstrap = kwargs.pop('bootstrap')
72
+ if bootstrap is not None:
73
+ boot(bootstrap)
56
74
  return func(*args, **kwargs)
57
75
 
58
76
  return wrapper
Binary file
qulab/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.7.2"
1
+ __version__ = "2.7.3"
File without changes
File without changes