iqm-station-control-client 6.0.0__py3-none-any.whl → 7.1.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.
- iqm/station_control/client/iqm_server/iqm_server_client.py +2 -2
- iqm/station_control/client/station_control.py +3 -3
- iqm/station_control/interface/models/jobs.py +14 -19
- {iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/METADATA +1 -1
- {iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/RECORD +8 -8
- {iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/LICENSE.txt +0 -0
- {iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/WHEEL +0 -0
- {iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/top_level.txt +0 -0
|
@@ -295,9 +295,9 @@ def payload_to_sweep(job_payload: bytes) -> SweepDefinition:
|
|
|
295
295
|
def to_job_status(job_status: proto.JobStatus) -> JobStatus:
|
|
296
296
|
match job_status:
|
|
297
297
|
case proto.JobStatus.IN_QUEUE:
|
|
298
|
-
return JobStatus.
|
|
298
|
+
return JobStatus.PENDING_EXECUTION
|
|
299
299
|
case proto.JobStatus.EXECUTING:
|
|
300
|
-
return JobStatus.
|
|
300
|
+
return JobStatus.EXECUTION_START
|
|
301
301
|
case proto.JobStatus.FAILED:
|
|
302
302
|
return JobStatus.FAILED
|
|
303
303
|
case proto.JobStatus.COMPLETED:
|
|
@@ -34,10 +34,10 @@ import requests
|
|
|
34
34
|
from exa.common.data.setting_node import SettingNode
|
|
35
35
|
from exa.common.data.value import ObservationValue
|
|
36
36
|
from exa.common.errors.server_errors import (
|
|
37
|
-
STATUS_CODE_TO_ERROR_MAPPING,
|
|
38
37
|
InternalServerError,
|
|
39
38
|
NotFoundError,
|
|
40
39
|
StationControlError,
|
|
40
|
+
map_from_status_code_to_error,
|
|
41
41
|
)
|
|
42
42
|
from exa.common.qcm_data.qcm_data_client import QCMDataClient
|
|
43
43
|
from iqm.station_control.client.list_models import (
|
|
@@ -699,7 +699,7 @@ class StationControlClient:
|
|
|
699
699
|
max_seen_position = 0
|
|
700
700
|
while True:
|
|
701
701
|
job = self._poll_job(job_id)
|
|
702
|
-
if job.job_status >= JobStatus.
|
|
702
|
+
if job.job_status >= JobStatus.EXECUTION_START:
|
|
703
703
|
if max_seen_position:
|
|
704
704
|
update_progress_callback([("Progress in queue", max_seen_position, max_seen_position)])
|
|
705
705
|
return job.job_status
|
|
@@ -820,7 +820,7 @@ class StationControlClient:
|
|
|
820
820
|
except json.JSONDecodeError:
|
|
821
821
|
error_message = response.text
|
|
822
822
|
|
|
823
|
-
error_class =
|
|
823
|
+
error_class = map_from_status_code_to_error(response.status_code)
|
|
824
824
|
raise error_class(error_message)
|
|
825
825
|
return response
|
|
826
826
|
|
|
@@ -66,29 +66,24 @@ class JobStatus(Enum):
|
|
|
66
66
|
RECEIVED = "received"
|
|
67
67
|
|
|
68
68
|
# Validating the job
|
|
69
|
+
VALIDATING = "validating"
|
|
70
|
+
ACCEPTED = "accepted"
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
VALIDATION_ENDED = "validation_ended"
|
|
72
|
-
|
|
73
|
-
FETCH_CALIBRATION_STARTED = "fetch_calibration_started"
|
|
74
|
-
FETCH_CALIBRATION_ENDED = "fetch_calibration_ended"
|
|
72
|
+
PREPARING_CALIBRATION = "preparing_calibration"
|
|
75
73
|
|
|
76
74
|
# Running PulLA
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
PENDING_COMPILATION = "pending_compilation"
|
|
76
|
+
COMPILING = "compiling"
|
|
77
|
+
COMPILED = "compiled"
|
|
79
78
|
|
|
80
79
|
# Executing sweep
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# Extracting artifacts from results
|
|
89
|
-
POST_PROCESSING_STARTED = "post_processing_started"
|
|
90
|
-
POST_PROCESSING_ENDED = "post_processing_ended"
|
|
91
|
-
|
|
80
|
+
STORING_SWEEP_METADATA = "storing_sweep_metadata"
|
|
81
|
+
METADATA_STORED = "metadata_stored"
|
|
82
|
+
PENDING_EXECUTION = "pending_execution"
|
|
83
|
+
EXECUTION_START = "execution_start"
|
|
84
|
+
EXECUTION_END = "execution_end"
|
|
85
|
+
PENDING_POST_PROCESSING = "pending_post_processing"
|
|
86
|
+
POST_PROCESSING = "post_processing"
|
|
92
87
|
READY = "ready"
|
|
93
88
|
|
|
94
89
|
# Job failed, can happen at any stage
|
|
@@ -117,7 +112,7 @@ class JobStatus(Enum):
|
|
|
117
112
|
"""Enable comparison according to definition order.
|
|
118
113
|
|
|
119
114
|
Examples:
|
|
120
|
-
>>> JobStatus.
|
|
115
|
+
>>> JobStatus.ACCEPTED < JobStatus.COMPILED
|
|
121
116
|
True
|
|
122
117
|
|
|
123
118
|
"""
|
{iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/RECORD
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
iqm/station_control/client/__init__.py,sha256=BmBIBdZa10r-IWCFzZ1-0DG6GQKPIXqGXltfXop4ZeQ,942
|
|
2
2
|
iqm/station_control/client/list_models.py,sha256=SjD0DbCrM9z1SSuGoQS83lyJmDLuMOatpJUoW8itW9s,2335
|
|
3
|
-
iqm/station_control/client/station_control.py,sha256=
|
|
3
|
+
iqm/station_control/client/station_control.py,sha256=Aep9RaCYj_DFggUC0l7ncJUaYG-FJbumbb2PHqWvJ5c,39603
|
|
4
4
|
iqm/station_control/client/utils.py,sha256=cpS3hXEeeIXeqd_vBnnwo3JHS83FrNpG07SiTUwUx-I,1650
|
|
5
5
|
iqm/station_control/client/iqm_server/__init__.py,sha256=nLsRHN1rnOKXwuzaq_liUpAYV3sis5jkyHccSdacV7U,624
|
|
6
6
|
iqm/station_control/client/iqm_server/error.py,sha256=ZLV2-gxFLHZjZVkI3L5sWcBMiay7NT-ijIEvrXgVJT8,1166
|
|
7
7
|
iqm/station_control/client/iqm_server/grpc_utils.py,sha256=ee42C31_JIXlP6ikZQbohgUQjqCvcSSxIW_9lm9MMV8,5727
|
|
8
|
-
iqm/station_control/client/iqm_server/iqm_server_client.py,sha256=
|
|
8
|
+
iqm/station_control/client/iqm_server/iqm_server_client.py,sha256=zDPfHFixd_PresI57wSs9PbiWQ9akxUkvpkOesxatas,14711
|
|
9
9
|
iqm/station_control/client/iqm_server/meta_class.py,sha256=pePJ0Xy0aiJg-bZWK8D87gblq6imfXLsZHjpZkf5D9s,1399
|
|
10
10
|
iqm/station_control/client/iqm_server/proto/__init__.py,sha256=mOJQ_H-NEyJMffRaDSSZeXrScHaHaHEXULv-O_OJA3A,1345
|
|
11
11
|
iqm/station_control/client/iqm_server/proto/calibration_pb2.py,sha256=gum0DGmqxhbfaar8SqahmSif1pB6hgo0pVcnoi3VMUo,3017
|
|
@@ -39,7 +39,7 @@ iqm/station_control/interface/list_with_meta.py,sha256=GAXIDEXKeua6-2FoQ_O1tkhx-
|
|
|
39
39
|
iqm/station_control/interface/pydantic_base.py,sha256=MVzcsH7wG1DON-qTw6KLpUDay7_b_9CDQgymVzg9HwI,1303
|
|
40
40
|
iqm/station_control/interface/models/__init__.py,sha256=JeXFg-ltPOoSY6qVclUKCVyt-7okNgCptLb3h3t3JD4,1587
|
|
41
41
|
iqm/station_control/interface/models/dut.py,sha256=dd1SpcsBe4P057jvcPqv39SjzekewwP07hThFe5ulNA,1216
|
|
42
|
-
iqm/station_control/interface/models/jobs.py,sha256=
|
|
42
|
+
iqm/station_control/interface/models/jobs.py,sha256=HK95f3cWCawyqTaiMoGeLQEWl4hiHZDzSd63q_TXuuY,3732
|
|
43
43
|
iqm/station_control/interface/models/monitor.py,sha256=9p-hg5DWrlbCIrJ0GyQ90DrHr1Yc9DCQyfpsQCm0cDE,1328
|
|
44
44
|
iqm/station_control/interface/models/observation.py,sha256=Jce4lIsUtHRIFT3nr-cbKvh3dbR2Y_yM5x0yyvUdjF8,3261
|
|
45
45
|
iqm/station_control/interface/models/observation_set.py,sha256=Ko2o3-9I38NfjNF2IQPcwfbwpkTQ3PIU7fUiSaDleX8,3031
|
|
@@ -47,8 +47,8 @@ iqm/station_control/interface/models/run.py,sha256=m-iE3QMPQUOF7bsw8JCAM1Bd6bDVh
|
|
|
47
47
|
iqm/station_control/interface/models/sequence.py,sha256=uOqMwF1x-vW6UHs2WnPD3PsuSgV3a8OTAsgn_4UENLw,2723
|
|
48
48
|
iqm/station_control/interface/models/sweep.py,sha256=ZV_1zcEF5_NY0nPgC75tU7s14TE1o0croBSClIVSmCE,2493
|
|
49
49
|
iqm/station_control/interface/models/type_aliases.py,sha256=3LB9viZVi8osavY5kKF8TH1crayG7-MLjgBqXDCqL2s,1018
|
|
50
|
-
iqm_station_control_client-
|
|
51
|
-
iqm_station_control_client-
|
|
52
|
-
iqm_station_control_client-
|
|
53
|
-
iqm_station_control_client-
|
|
54
|
-
iqm_station_control_client-
|
|
50
|
+
iqm_station_control_client-7.1.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
|
|
51
|
+
iqm_station_control_client-7.1.0.dist-info/METADATA,sha256=JBIbAx2UUghLhkLA2cCbIxiPUogflXtLJrEdueLAzuU,14009
|
|
52
|
+
iqm_station_control_client-7.1.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
53
|
+
iqm_station_control_client-7.1.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
|
|
54
|
+
iqm_station_control_client-7.1.0.dist-info/RECORD,,
|
|
File without changes
|
{iqm_station_control_client-6.0.0.dist-info → iqm_station_control_client-7.1.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|