iqm-exa-common 26.24.0__py3-none-any.whl → 26.25.1__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.24.0
3
+ Version: 26.25.1
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
@@ -221,6 +221,7 @@ Requires-Dist: xarray ==2024.10.0
221
221
  Requires-Dist: requests ==2.32.3
222
222
  Requires-Dist: ruamel-yaml ==0.17.32
223
223
  Requires-Dist: ruamel-yaml-clib ==0.2.8
224
+ Requires-Dist: jinja2 ==3.0.3
224
225
 
225
226
  EXA-common
226
227
  ==========
@@ -31,7 +31,7 @@ exa/common/data/settingnode_v2.html.jinja2,sha256=mo-rlLLmU-Xxf6znJAisispAZK8sbV
31
31
  exa/common/data/value.py,sha256=mtMws5UPGx1pCADK6Q2Tx4BwCXznvVRSNQRfcQ3NMmY,1853
32
32
  exa/common/errors/__init__.py,sha256=ArMBdpmx1EUenBpzrSNG63kmUf7PM0gCqSYnaCnL9Qk,597
33
33
  exa/common/errors/exa_error.py,sha256=iw8ueZgqx1JXkfjRoJfPUsSE7cfhzIWpdDaFuka9Ss0,990
34
- exa/common/errors/station_control_errors.py,sha256=NEVW9QC-jJM36CQ8b9IIg9hZv5Utph9LXirxk5ZiuNM,4122
34
+ exa/common/errors/station_control_errors.py,sha256=s0LimSOthQF8NWKyW556p-9vEapOxtn_W5ZiZVPTv_g,4489
35
35
  exa/common/helpers/__init__.py,sha256=IgtVD3tojIFA4MTV2mT5uYM6jb2qny9kBIIhEZT2PuI,610
36
36
  exa/common/helpers/data_helper.py,sha256=qg-RBCGGP947IbZAoFQ0oQrmp2EgzCSgh6kinX2MD9A,1903
37
37
  exa/common/helpers/deprecation.py,sha256=nY8484iun63JOBfBeh49Q6VD5xZ4_gT9fjPmH1RAXoI,397
@@ -50,8 +50,8 @@ exa/common/qcm_data/qcm_data_client.py,sha256=v8gW-nAYxCdVEO4Uncl3DwH85D67Gi2n2a
50
50
  exa/common/sweep/__init__.py,sha256=uEKk5AtzSgSnf8Y0geRPwUpqXIBIXpeCxsN64sX7F1o,591
51
51
  exa/common/sweep/database_serialization.py,sha256=NUu1umxRQZpKtRmw1vNDsSbnofqbHvKFg_xQ2mdhY6k,7469
52
52
  exa/common/sweep/util.py,sha256=-QE2AaH-WDkYAVH5-Z-30leLgY0x4efmby4kc1JTCgY,3732
53
- iqm_exa_common-26.24.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
54
- iqm_exa_common-26.24.0.dist-info/METADATA,sha256=XyxKVSSuKpnuzeETGtLlpKXvqHMqLyKxchO5kJS4fGY,14629
55
- iqm_exa_common-26.24.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
56
- iqm_exa_common-26.24.0.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
57
- iqm_exa_common-26.24.0.dist-info/RECORD,,
53
+ iqm_exa_common-26.25.1.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
54
+ iqm_exa_common-26.25.1.dist-info/METADATA,sha256=Te_T5Ku9bervJr4kaehMvswSuIrZ5zQWKgIdiahdlOE,14659
55
+ iqm_exa_common-26.25.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
56
+ iqm_exa_common-26.25.1.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
57
+ iqm_exa_common-26.25.1.dist-info/RECORD,,