nsqdriver 0.6.1__cp312-cp312-win_amd64.whl → 0.7.0__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.

Potentially problematic release.


This version of nsqdriver might be problematic. Click here for more details.

nsqdriver/NS_MCI.py CHANGED
@@ -344,7 +344,10 @@ class Driver(BaseDriver):
344
344
 
345
345
  def _show_system_status(self):
346
346
  keys = ['device_type', 'backend_version', 'ad_num', 'da_num', 'cpu_temp', 'memory_use']
347
- status: dict = self.handle.get_all_status(False)
347
+ if self.backend_version >= (2, 1, 0):
348
+ status: dict = self.get("Status")
349
+ else:
350
+ status: dict = self.handle.get_all_status(False)
348
351
  _string = [f'*********设备{self.addr}开启成功*********']
349
352
  for key in keys:
350
353
  _string.append(f'{key}: {status.get(key, "nan")}')
nsqdriver/__init__.py CHANGED
@@ -4,7 +4,7 @@ from .NS_CST import Driver as CSTDriver
4
4
  from .compiler.ns_wave import InsChannel
5
5
  from .compiler.py_wave_asm import nsw_config, AssemblyError
6
6
 
7
- version_pack = (0, 6, 1)
7
+ version_pack = (0, 7, 0)
8
8
 
9
9
  __version__ = '.'.join(str(_) for _ in version_pack)
10
10
  __all__ = ['MCIDriver', 'QSYNCDriver', 'CSTDriver', 'InsChannel']
@@ -1,2 +1,3 @@
1
1
  from .kernel import *
2
2
  from ._functions import *
3
+ from ._asm import NSQCommand as NSQCommand
Binary file
nsqdriver/nswave/_asm.pyi CHANGED
@@ -71,6 +71,8 @@ class QInsNop(NSQCommand):
71
71
  class QInsJumpImmediate(NSQCommand):
72
72
  idx: Incomplete
73
73
  def __init__(self, idx: int) -> None: ...
74
+ @property
75
+ def overhead(self): ...
74
76
 
75
77
  class QInsCapture(NSQCommand):
76
78
  fre: Incomplete
@@ -2,7 +2,7 @@ import numpy as np
2
2
  from ._asm import NSQCommand, QInsEnvelope, QInsFrame
3
3
  from typing import Iterable, TypeVar
4
4
 
5
- __all__ = ['Frame', 'Envelope', 'Int', 'Var', 'wait_for_trigger', 'ins_envelope', 'ins_frame', 'evlp_gaussian', 'evlp_square', 'evlp_cospulse', 'inc_phase', 'inc_frequency', 'reset_frame', 'play_wave', 'wait']
5
+ __all__ = ['Frame', 'Envelope', 'Int', 'Var', 'wait_for_trigger', 'ins_envelope', 'ins_frame', 'evlp_gaussian', 'evlp_square', 'evlp_cospulse', 'inc_phase', 'inc_frequency', 'reset_frame', 'play_wave', 'wait', 'capture']
6
6
 
7
7
  Frame = TypeVar('Frame', bound=QInsFrame)
8
8
  Envelope = TypeVar('Envelope', bound=QInsEnvelope)
@@ -23,3 +23,4 @@ def inc_phase(frame_list: Iterable[Frame], phase: float) -> Placeholder: ...
23
23
  def inc_frequency(frame_list: Iterable[Frame], freq: float) -> Placeholder: ...
24
24
  def play_wave(envelope: QInsEnvelope, frame: QInsFrame, amp: int = 1, freq: int = 0, phase: int = 0) -> Placeholder: ...
25
25
  def wait(width) -> Placeholder: ...
26
+ def capture(freq_list, acq_width: float, delay_width: float, play_width: float, raw_data_store: bool, iq_data_store: bool, judge_data_store: bool, double_fre_mode: bool) -> Int: ...
Binary file
@@ -27,6 +27,7 @@ class Kernel(ast.NodeVisitor, metaclass=NSQCKernel):
27
27
  def clear(self) -> None: ...
28
28
  def parse(self): ...
29
29
  def show(self) -> None: ...
30
+ def __call__(self, *args, **kwargs): ...
30
31
  def visit_arg(self, node: ast.arg): ...
31
32
  def visit_Assign(self, node: ast.Assign): ...
32
33
  def visit_AugAssign(self, node: ast.AugAssign): ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nsqdriver
3
- Version: 0.6.1
3
+ Version: 0.7.0
4
4
  Summary: Q series measurement and control equipment driver interface
5
5
  Home-page: https://g2hoyqcmh4.feishu.cn/wiki/Jgt1wxlKniveYQkqCgbcJHsMnoe
6
6
  Classifier: Intended Audience :: Developers
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Python: >=3.8
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: numpy >=1.18
19
+ Requires-Dist: astor >=0.8.1
19
20
  Provides-Extra: waveforms
20
21
  Requires-Dist: waveforms ; extra == 'waveforms'
21
22
 
@@ -0,0 +1,25 @@
1
+ nsqdriver/NS_CST.py,sha256=zA5YcM65v66EqwBnplDvA6HM0I-y8damDOerE2CKyZE,8137
2
+ nsqdriver/NS_MCI.py,sha256=qwcGJNA1z7erqexYuSBFQen1d7k8Sx964qhI4hWsZBA,21468
3
+ nsqdriver/NS_QSYNC.py,sha256=bdvl5tDKrqqWuHnCR7h88SyeZ4UA4ZNjH_6e4ZEGguE,27881
4
+ nsqdriver/__init__.py,sha256=yqrH3dgsYqbdzisH0lBhlfB3aW5zpVQi1xgmtb3HEF0,381
5
+ nsqdriver/common.py,sha256=5BRActb9TgNdVwWtfuZ_gki47H1WbABzYr5XbxLKlh4,519
6
+ nsqdriver/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ nsqdriver/compiler/assembler.cp312-win_amd64.pyd,sha256=e0cevas464JPRe3ss4I-9CRpKMVbkrPOZs_oaItyCkU,368128
8
+ nsqdriver/compiler/ns_wave.cp312-win_amd64.pyd,sha256=AduIAhZqyVOXb_fVhhrDvZuO7cCf9YF4imPN6-hJxC8,234496
9
+ nsqdriver/compiler/ns_wave.pyi,sha256=axQaxrMaKRPx8k9sDVlRj3SjR03AmXUDzkVW4D_2RJw,3975
10
+ nsqdriver/compiler/py_wave_asm.cp312-win_amd64.pyd,sha256=QPvYpCaqccuoIaIqjl_dNSgY1zi8kn24TurW4bipCdw,324608
11
+ nsqdriver/compiler/py_wave_asm.pyi,sha256=PqEZuNt83CCu_FJUczUjStowOz2TBgvfIytGanFPHuQ,685
12
+ nsqdriver/nswave/__init__.py,sha256=ChVDz0uYVnrNmmcKqPjPYd4FWHsB0m2tdAw82ZbkoQA,94
13
+ nsqdriver/nswave/_asm.cp312-win_amd64.pyd,sha256=tLShw639EH5WQF-cg0aNL1zZG8zAX2EsCbxWdnk76Sc,232448
14
+ nsqdriver/nswave/_asm.pyi,sha256=PiCgsERDugyOrFIN3vO-lYzNQbKJiMqpJPr3lCHaQEU,2818
15
+ nsqdriver/nswave/_functions.cp312-win_amd64.pyd,sha256=SvBYqDBZlrkFWCxft6OxSjex-L-k_pRCpsZyZKHZYI0,84480
16
+ nsqdriver/nswave/_functions.pyi,sha256=q0k-EWfz9gL6VOxERL5yQeE93NTVBCR4T-WgOpFF_9c,1591
17
+ nsqdriver/nswave/kernel.cp312-win_amd64.pyd,sha256=ZrNboPlIVXYrqftUu4ZCYywfPzA-Cboe1C_AxLapgoY,162304
18
+ nsqdriver/nswave/kernel.pyi,sha256=4V2Kb6zL599KSGEYqK_LZL9WOQ6dCLHNdnz5IYfdtik,1600
19
+ nsqdriver/wrapper/AWG_ADC.py,sha256=wLtkbJe39hDcnbWZ-8jyGZ78RQtn7iAZ7P7H0n-2IWU,19733
20
+ nsqdriver/wrapper/ND_NSMCI.py,sha256=e0j7BUdfrhfYb1GqBPlO4vSoZPXTKyictXy1nPvoMFE,6533
21
+ nsqdriver/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ nsqdriver-0.7.0.dist-info/METADATA,sha256=GwF4-tiEBe_-iswRx27vibavQ1MzJvgf7nbyKLx0Lxw,4386
23
+ nsqdriver-0.7.0.dist-info/WHEEL,sha256=3x_bcW68bUAcconjAL7QQrdN9TajBLCHyHJA2sbOuIc,101
24
+ nsqdriver-0.7.0.dist-info/top_level.txt,sha256=o7EbQoFO6BoaG3KGbS9Lg_aRheZSY5KYzoYuI9vx-AI,10
25
+ nsqdriver-0.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
5
5
 
@@ -1,2 +0,0 @@
1
- from .kernel import *
2
- from ._functions import *
@@ -1,26 +0,0 @@
1
- nsqdriver/NS_CST.py,sha256=zA5YcM65v66EqwBnplDvA6HM0I-y8damDOerE2CKyZE,8137
2
- nsqdriver/NS_MCI.py,sha256=CAOzRpRfpVMmGrY5_oko9yGXEe1PoUAVChIFXJTDcJo,21355
3
- nsqdriver/NS_QSYNC.py,sha256=bdvl5tDKrqqWuHnCR7h88SyeZ4UA4ZNjH_6e4ZEGguE,27881
4
- nsqdriver/__init__.py,sha256=KR4SeswMyqRLtSUXXeCsPZsSNVIwf8dhYPmceKdpsrE,381
5
- nsqdriver/common.py,sha256=5BRActb9TgNdVwWtfuZ_gki47H1WbABzYr5XbxLKlh4,519
6
- nsqdriver/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- nsqdriver/compiler/assembler.cp312-win_amd64.pyd,sha256=qY3qxitiz91ZlIeJbNmjSaZGlLRcrQMbWPS7RrgapuU,368640
8
- nsqdriver/compiler/ns_wave.cp312-win_amd64.pyd,sha256=ro2h7Z-Rmj3MTxUEIuB6GJvFCuSSzBVocn3h0oF_0dM,233984
9
- nsqdriver/compiler/ns_wave.pyi,sha256=axQaxrMaKRPx8k9sDVlRj3SjR03AmXUDzkVW4D_2RJw,3975
10
- nsqdriver/compiler/py_wave_asm.cp312-win_amd64.pyd,sha256=Y_6M2GtBEaRi5PHZnNd-DUcIp9paBqgoDEIyAUZ61zI,324608
11
- nsqdriver/compiler/py_wave_asm.pyi,sha256=PqEZuNt83CCu_FJUczUjStowOz2TBgvfIytGanFPHuQ,685
12
- nsqdriver/nswave/__init__.py,sha256=bRrHMAhfzPd9LWGUZ5JkNPq4ulT48bpZ8odtP51sr1w,50
13
- nsqdriver/nswave/__init__.pyi,sha256=bRrHMAhfzPd9LWGUZ5JkNPq4ulT48bpZ8odtP51sr1w,50
14
- nsqdriver/nswave/_asm.cp312-win_amd64.pyd,sha256=U7g6iGlGv3IjnoPP-Y_fZlkJIQ0z7DLZxdSfTYjiRg8,178688
15
- nsqdriver/nswave/_asm.pyi,sha256=UaKmCbD218hwi82l0YFzwfKSI4aiM97Kaw1qbL7XYng,2774
16
- nsqdriver/nswave/_functions.cp312-win_amd64.pyd,sha256=qg9xeJ76aF2ZtkkDK-lLi_QAwljCBNwzKeEZWtLSXZs,83968
17
- nsqdriver/nswave/_functions.pyi,sha256=l97-iaYqDTsXnOaPQK45scP1eimWAFu77QD4bS5XgPk,1397
18
- nsqdriver/nswave/kernel.cp312-win_amd64.pyd,sha256=e19pFpcBnfh8G92mnzzjcWEoagFKG729JbK6CbGnUAs,160768
19
- nsqdriver/nswave/kernel.pyi,sha256=_eEB9tS8YXkScmY-2pU-oz6AnecDl52Ifs6kq2zVJTU,1554
20
- nsqdriver/wrapper/AWG_ADC.py,sha256=wLtkbJe39hDcnbWZ-8jyGZ78RQtn7iAZ7P7H0n-2IWU,19733
21
- nsqdriver/wrapper/ND_NSMCI.py,sha256=e0j7BUdfrhfYb1GqBPlO4vSoZPXTKyictXy1nPvoMFE,6533
22
- nsqdriver/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- nsqdriver-0.6.1.dist-info/METADATA,sha256=LsHbkFHXY_310bDlgo-FU2Xrn5mBRbxP7xS2lTCiC6Q,4356
24
- nsqdriver-0.6.1.dist-info/WHEEL,sha256=fZWyj_84lK0cA-ZNCsdwhbJl0OTrpWkxInEn424qrSs,102
25
- nsqdriver-0.6.1.dist-info/top_level.txt,sha256=o7EbQoFO6BoaG3KGbS9Lg_aRheZSY5KYzoYuI9vx-AI,10
26
- nsqdriver-0.6.1.dist-info/RECORD,,