iqm-exa-common 26.28.0__py3-none-any.whl → 26.29.0__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.
@@ -14,17 +14,29 @@
14
14
  """Errors used in the station control client-server communication."""
15
15
 
16
16
  from http import HTTPStatus
17
+ import logging
17
18
 
18
19
  from exa.common.errors.exa_error import ExaError
19
20
 
20
21
 
21
22
  class StationControlError(ExaError):
22
- """Base class for station control errors."""
23
+ """Base class for station control errors.
24
+
25
+ Args:
26
+ message: Normal error message.
27
+ log_level: The effective log level of this error.
28
+ By default, the ERROR level is used. Can be lowered to hide this error from the logs.
29
+
30
+ """
23
31
 
24
32
  # TODO: StationControlError shouldn't need to inherit ExaError
25
33
  # Some clients might still expect ExaErrors, thus inheriting here to avoid issues because of that.
26
34
  # Ideally, we would keep server errors (raised by station control) and any client side errors separate.
27
35
 
36
+ def __init__(self, message: str, log_level: int = logging.ERROR):
37
+ self.log_level = log_level
38
+ super().__init__(message)
39
+
28
40
 
29
41
  class BadRequestError(StationControlError):
30
42
  """Error raised when the request syntax is invalid or the method is unsupported in general."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-exa-common
3
- Version: 26.28.0
3
+ Version: 26.29.0
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
@@ -32,7 +32,7 @@ exa/common/data/settingnode_v2.html.jinja2,sha256=mo-rlLLmU-Xxf6znJAisispAZK8sbV
32
32
  exa/common/data/value.py,sha256=mtMws5UPGx1pCADK6Q2Tx4BwCXznvVRSNQRfcQ3NMmY,1853
33
33
  exa/common/errors/__init__.py,sha256=ArMBdpmx1EUenBpzrSNG63kmUf7PM0gCqSYnaCnL9Qk,597
34
34
  exa/common/errors/exa_error.py,sha256=iw8ueZgqx1JXkfjRoJfPUsSE7cfhzIWpdDaFuka9Ss0,990
35
- exa/common/errors/station_control_errors.py,sha256=NEVW9QC-jJM36CQ8b9IIg9hZv5Utph9LXirxk5ZiuNM,4122
35
+ exa/common/errors/station_control_errors.py,sha256=s0LimSOthQF8NWKyW556p-9vEapOxtn_W5ZiZVPTv_g,4489
36
36
  exa/common/helpers/__init__.py,sha256=IgtVD3tojIFA4MTV2mT5uYM6jb2qny9kBIIhEZT2PuI,610
37
37
  exa/common/helpers/data_helper.py,sha256=-AP0vwrf7WgyumLsicDtNP2VP5rhG4_oiOZgG4alNb4,2001
38
38
  exa/common/helpers/deprecation.py,sha256=nY8484iun63JOBfBeh49Q6VD5xZ4_gT9fjPmH1RAXoI,397
@@ -51,8 +51,8 @@ exa/common/qcm_data/qcm_data_client.py,sha256=Rze6yQd0xUeH6eUMv3wduYbiDCTP3C4WEC
51
51
  exa/common/sweep/__init__.py,sha256=uEKk5AtzSgSnf8Y0geRPwUpqXIBIXpeCxsN64sX7F1o,591
52
52
  exa/common/sweep/database_serialization.py,sha256=NUu1umxRQZpKtRmw1vNDsSbnofqbHvKFg_xQ2mdhY6k,7469
53
53
  exa/common/sweep/util.py,sha256=-QE2AaH-WDkYAVH5-Z-30leLgY0x4efmby4kc1JTCgY,3732
54
- iqm_exa_common-26.28.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
55
- iqm_exa_common-26.28.0.dist-info/METADATA,sha256=KISV_HQf4F7z7rwX36K7ux-nHUrpqSqZRS72K9YlnA8,14742
56
- iqm_exa_common-26.28.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
57
- iqm_exa_common-26.28.0.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
58
- iqm_exa_common-26.28.0.dist-info/RECORD,,
54
+ iqm_exa_common-26.29.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
55
+ iqm_exa_common-26.29.0.dist-info/METADATA,sha256=usD7yjsnYmS1lxcxRozoJPTyLrEXw3cHFD0sGwxzAQw,14742
56
+ iqm_exa_common-26.29.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
57
+ iqm_exa_common-26.29.0.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
58
+ iqm_exa_common-26.29.0.dist-info/RECORD,,