iqm-exa-common 26.3__py3-none-any.whl → 26.5__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.
@@ -236,11 +236,12 @@ class Parameter(BaseModel):
236
236
  case _:
237
237
  raise ValidationError("Parameter 'element_indices' must be one or more ints.")
238
238
  object.__setattr__(self, "element_indices", idxs)
239
-
240
- object.__setattr__(self, "_parent_name", self.name)
241
- object.__setattr__(self, "_parent_label", self.label)
242
- object.__setattr__(self, "label", f"{self.label} {idxs}")
243
- name = self.name
239
+ # there may be len(idxs) num of "__" separated indices at the end, remove those to get the parent name
240
+ parent_name = self.name.replace("__" + "__".join([str(idx) for idx in idxs]), "")
241
+ object.__setattr__(self, "_parent_name", parent_name)
242
+ object.__setattr__(self, "_parent_label", self.label.replace(f" {idxs}", ""))
243
+ object.__setattr__(self, "label", f"{self._parent_label} {idxs}")
244
+ name = self._parent_name
244
245
  for index in idxs:
245
246
  name += f"__{index}"
246
247
  object.__setattr__(self, "name", name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-exa-common
3
- Version: 26.3
3
+ Version: 26.5
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
@@ -25,7 +25,7 @@ exa/common/control/sweep/option/start_stop_options.py,sha256=HaQFNlhRPep2yrn_LuO
25
25
  exa/common/control/sweep/option/sweep_options.py,sha256=BhKB7RHP0VXJ9iUQKVzeQOM4j_x9AsMhRJgoR3gkiaY,933
26
26
  exa/common/data/__init__.py,sha256=F5SRe5QHBTjef4XJVQ63kO5Oxc_AiZnPbV560i7La0Y,644
27
27
  exa/common/data/base_model.py,sha256=A008Gn4cVQloiCWqJOGal5C1vq_ItyOWXnFvZcHPsuc,1785
28
- exa/common/data/parameter.py,sha256=oPeFy_YGfbioGd6EQfzLkp01ACs8BeEULVBQgM89k-Q,22918
28
+ exa/common/data/parameter.py,sha256=m_DLwtDtwLXfzRjpXBTCsc7iZTRZJvnnPAC--nEKhxE,23168
29
29
  exa/common/data/setting_node.py,sha256=WldawevXuOb2uN-bjZ04hWijKqX_MOdkyMsgxOZbrek,43190
30
30
  exa/common/data/settingnode_v2.html.jinja2,sha256=mo-rlLLmU-Xxf6znJAisispAZK8sbV-2C13byKAtj_Q,3166
31
31
  exa/common/data/value.py,sha256=mtMws5UPGx1pCADK6Q2Tx4BwCXznvVRSNQRfcQ3NMmY,1853
@@ -48,8 +48,8 @@ exa/common/qcm_data/qcm_data_client.py,sha256=0clAbZ3HPBH9lFOe8cVmaq8hPHG5m3pyPG
48
48
  exa/common/sweep/__init__.py,sha256=uEKk5AtzSgSnf8Y0geRPwUpqXIBIXpeCxsN64sX7F1o,591
49
49
  exa/common/sweep/database_serialization.py,sha256=NUu1umxRQZpKtRmw1vNDsSbnofqbHvKFg_xQ2mdhY6k,7469
50
50
  exa/common/sweep/util.py,sha256=-QE2AaH-WDkYAVH5-Z-30leLgY0x4efmby4kc1JTCgY,3732
51
- iqm_exa_common-26.3.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
52
- iqm_exa_common-26.3.dist-info/METADATA,sha256=PvSPA783_S0WhePDPBvBvTuolD_xUSYJ2ulWdyVnGhk,14548
53
- iqm_exa_common-26.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
54
- iqm_exa_common-26.3.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
55
- iqm_exa_common-26.3.dist-info/RECORD,,
51
+ iqm_exa_common-26.5.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
52
+ iqm_exa_common-26.5.dist-info/METADATA,sha256=Wc3p3v3jv7DpqfcO0LBmw90VlMkd0jYOxP3a5dV0Hgk,14548
53
+ iqm_exa_common-26.5.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
54
+ iqm_exa_common-26.5.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
55
+ iqm_exa_common-26.5.dist-info/RECORD,,