QuLab 2.7.3__cp310-cp310-win_amd64.whl → 2.7.5__cp310-cp310-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.3
3
+ Version: 2.7.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,18 +1,18 @@
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.cp310-win_amd64.pyd,sha256=Tt_JYmoG-qvp2Z8pu2UTNtr_wdeWGao396MLSTcd8fU,31232
4
+ qulab/fun.cp310-win_amd64.pyd,sha256=PYz1Yye7KyUDzZpN2XlsIXRm_-bGttA2sZWhG1oGs58,31232
5
5
  qulab/typing.py,sha256=3c0eKa1avEHIi5wPvh3-4l6Of5mu5Rn1MWPnMeLGNX0,71
6
6
  qulab/utils.py,sha256=UyZNPIyvis5t2MJBkXXLO5EmYP3mQZbt87zmYAHgoyk,1291
7
- qulab/version.py,sha256=y99pEuN5aYbS8B82oaXdTpzvQub21umDXa0ybjLhtPQ,21
7
+ qulab/version.py,sha256=KaaWLSulRNfH8E5IXWnj4a54KetKPO0aYlKBuIb_6bs,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=Wc1SWfPsg9mjooV-kR9jvMqt0c2dXDwdQIJDySzNpqs,8932
12
+ qulab/executor/cli.py,sha256=glpQUV67_85sMpQoc3i2jw63I2WySwCd5sMXykEYzB0,8913
13
13
  qulab/executor/load.py,sha256=QKe2qs-kCPp0PjvnVMR5XVgSa1IkN5BSHkNPZ2EpC38,18007
14
14
  qulab/executor/schedule.py,sha256=YRAYs0PgR0mhhy4rJX8Ddi65peSfh7SfsvudVjLJQAU,15248
15
- qulab/executor/storage.py,sha256=-v7Yd1SrLa8Uy2JHHKFJN1Qp48PPgtWhHC7kcFdACLo,10546
15
+ qulab/executor/storage.py,sha256=SGnbVujkF3doNfNNDfgXI6alKkarhGbr690-VsjbBBA,10666
16
16
  qulab/executor/transform.py,sha256=kaDJePBhVc32gZkQN8YBuA69lYYW9YhDZmCnUKaWuQw,2189
17
17
  qulab/executor/utils.py,sha256=XDk3duNrqDsCqZyZUmPqIAIIiykiafcOMBpy9NVAOAw,5686
18
18
  qulab/monitor/__init__.py,sha256=xEVDkJF8issrsDeLqQmDsvtRmrf-UiViFcGTWuzdlFU,43
@@ -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.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=rzGfZgUcGeKSgIHGYMuqg4xE4VPHxnaldXH6BG0zjVk,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,,
97
+ QuLab-2.7.5.dist-info/LICENSE,sha256=b4NRQ-GFVpJMT7RuExW3NwhfbrYsX7AcdB7Gudok-fs,1086
98
+ QuLab-2.7.5.dist-info/METADATA,sha256=AZg_6BOoXCrbJyizf9xWdU9LmFLwHoN_IBNAt3U3SK4,3803
99
+ QuLab-2.7.5.dist-info/WHEEL,sha256=rzGfZgUcGeKSgIHGYMuqg4xE4VPHxnaldXH6BG0zjVk,101
100
+ QuLab-2.7.5.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
101
+ QuLab-2.7.5.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
102
+ QuLab-2.7.5.dist-info/RECORD,,
qulab/executor/cli.py CHANGED
@@ -20,11 +20,11 @@ from .utils import workflow_template
20
20
  @logger.catch(reraise=True)
21
21
  def boot(script_path):
22
22
  """Run a script in a new terminal."""
23
+ import subprocess
23
24
  import sys
24
25
 
25
- from qulab.utils import run_detached_with_terminal
26
-
27
- run_detached_with_terminal(sys.executable + ' ' + script_path)
26
+ proc = subprocess.Popen([sys.executable, script_path])
27
+ proc.communicate()
28
28
 
29
29
 
30
30
  @logger.catch(reraise=True)
qulab/executor/storage.py CHANGED
@@ -30,6 +30,7 @@ class Result():
30
30
  data: Any = field(default_factory=tuple)
31
31
  index: int = -1
32
32
  previous_path: Path | None = None
33
+ heads: dict[str, Path] | None = None
33
34
  base_path: Path | None = None
34
35
  config_path: Path | None = None
35
36
 
@@ -100,7 +101,7 @@ def save_config_key_history(key: str, result: Result,
100
101
  else:
101
102
  __current_config_cache = {}
102
103
 
103
- __current_config_cache[key] = result.data
104
+ __current_config_cache[key] = result.data, datetime.now()
104
105
 
105
106
  with open(base_path / 'parameters.pkl', 'wb') as f:
106
107
  pickle.dump(__current_config_cache, f)
@@ -118,13 +119,17 @@ def find_config_key_history(key: str, base_path: str | Path) -> Result | None:
118
119
  __current_config_cache = {}
119
120
 
120
121
  if key in __current_config_cache:
121
- value = __current_config_cache.get(key, None)
122
- result = Result(workflow=f'cfg:{key}',
123
- bad_data=False,
124
- in_spec=True,
125
- fully_calibrated=True,
126
- parameters={key: value},
127
- data=value)
122
+ value, checked_time = __current_config_cache.get(key, None)
123
+ result = Result(
124
+ workflow=f'cfg:{key}',
125
+ bad_data=False,
126
+ in_spec=True,
127
+ fully_calibrated=True,
128
+ parameters={key: value},
129
+ data=value,
130
+ calibrated_time=checked_time,
131
+ checked_time=checked_time,
132
+ )
128
133
  result.bad_data = False
129
134
  return result
130
135
  return None
Binary file
qulab/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.7.3"
1
+ __version__ = "2.7.5"
File without changes
File without changes