iqm-exa-common 26.0__py3-none-any.whl → 26.2__py3-none-any.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.
@@ -37,16 +37,16 @@ def pack(values: Sequence) -> dpb.Sequence:
37
37
  if not values:
38
38
  return target
39
39
  dtype = type(values[0])
40
- if dtype is complex:
40
+ if dtype is complex or np.issubdtype(dtype, np.complexfloating): # dtype is complex check for contingency
41
41
  target_field = target.complex128_array
42
42
  target_field.real.MergeFrom(np.real(values))
43
43
  target_field.imag.MergeFrom(np.imag(values))
44
44
  return target
45
45
  if dtype is bool:
46
46
  target_field = target.bool_array
47
- elif dtype is int:
47
+ elif dtype is int or np.issubdtype(dtype, np.integer):
48
48
  target_field = target.int64_array
49
- elif dtype is float:
49
+ elif dtype is float or np.issubdtype(dtype, np.floating):
50
50
  target_field = target.float64_array
51
51
  elif dtype is str:
52
52
  target_field = target.string_array
@@ -85,4 +85,6 @@ def unpack(proto: spb.SettingNode) -> SettingNode:
85
85
  """
86
86
  settings = {key: _unpack_setting(content) for key, content in proto.settings.items()}
87
87
  nodes = {key: unpack(content) for key, content in proto.subnodes.items()}
88
- return SettingNode(name=proto.name, **(settings | nodes))
88
+ # Names are currently NEVER aligned with the paths when deserializing. This is safe to do, since currently nothing
89
+ # in the server-side assumes path==name, but if such logic is added this needs to be reconsidered.
90
+ return SettingNode(name=proto.name, **(settings | nodes), align_name=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-exa-common
3
- Version: 26.0
3
+ Version: 26.2
4
4
  Summary: Framework for control and measurement of superconducting qubits: common library
5
5
  Author-email: IQM Finland Oy <info@meetiqm.com>
6
6
  License: Apache License
@@ -5,8 +5,8 @@ exa/common/api/proto_serialization/_parameter.py,sha256=W0EBrVs3uZ-jX1HnlOrAB7_P
5
5
  exa/common/api/proto_serialization/array.py,sha256=iht5WlfGEkzXM3PcOFDXxd2TgXWFyYNyPt44CMqXnl8,3110
6
6
  exa/common/api/proto_serialization/datum.py,sha256=gFIAncWpOhy4V56DKYdKoasEIpGu1yUerSuRQf65unY,4828
7
7
  exa/common/api/proto_serialization/nd_sweep.py,sha256=B36KY32wTNFJE3Bk2QlN4BeMO0Se7AtwOectlIh5SCM,2661
8
- exa/common/api/proto_serialization/sequence.py,sha256=2_84ILndHsc9c9KPKvckySIPJHByoH2fXIF-fTjrzvI,2377
9
- exa/common/api/proto_serialization/setting_node.py,sha256=Ac-WuYKUTiVywRmRJHhdpfoswQWRQEIEgIWsn7IsA_g,3700
8
+ exa/common/api/proto_serialization/sequence.py,sha256=ACmMyDqCWve33GhHTTDjc2LaBorAZ9H1QNyFx4G2Gtc,2536
9
+ exa/common/api/proto_serialization/setting_node.py,sha256=KCNpwgwIrgyuXsgt-rAm3oEQqKlIxtN8JBUDFaQTJ48,3940
10
10
  exa/common/control/__init__.py,sha256=00T_xV0lL20QZcEt__vWq81N1oGF0KpJMhTitfAI4VI,629
11
11
  exa/common/control/sweep/__init__.py,sha256=GzKoQdQsLutcHhmrLPyPrW1n7Cpg766p3OWDHlRpuTs,607
12
12
  exa/common/control/sweep/exponential_sweep.py,sha256=NjO0wiovyV4HTbS3hs0tptmPGSsQLNS9h-mYFQJzX8c,2039
@@ -47,8 +47,8 @@ exa/common/qcm_data/qcm_data_client.py,sha256=tuNEosERVjtGYEq7RWaBzxST7OvRAWxN-V
47
47
  exa/common/sweep/__init__.py,sha256=uEKk5AtzSgSnf8Y0geRPwUpqXIBIXpeCxsN64sX7F1o,591
48
48
  exa/common/sweep/database_serialization.py,sha256=NUu1umxRQZpKtRmw1vNDsSbnofqbHvKFg_xQ2mdhY6k,7469
49
49
  exa/common/sweep/util.py,sha256=-QE2AaH-WDkYAVH5-Z-30leLgY0x4efmby4kc1JTCgY,3732
50
- iqm_exa_common-26.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
51
- iqm_exa_common-26.0.dist-info/METADATA,sha256=hTPYpxCf4hTDYEFgVqF1x_RulSvJVd9pX7ETCUVB_38,14548
52
- iqm_exa_common-26.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
53
- iqm_exa_common-26.0.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
54
- iqm_exa_common-26.0.dist-info/RECORD,,
50
+ iqm_exa_common-26.2.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
51
+ iqm_exa_common-26.2.dist-info/METADATA,sha256=1FCjQmlvRiroZkS0XkBlj58DYjZNaQgke19qR1_2JK8,14548
52
+ iqm_exa_common-26.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
53
+ iqm_exa_common-26.2.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
54
+ iqm_exa_common-26.2.dist-info/RECORD,,