iqm-station-control-client 11.2.0__py3-none-any.whl → 11.3.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.
@@ -174,7 +174,7 @@ class IqmServerClient(_StationControlClientBase):
174
174
  modified_timestamp=to_datetime(job.updated_at),
175
175
  begin_timestamp=to_datetime(job.execution_started_at) if job.HasField("execution_started_at") else None,
176
176
  end_timestamp=to_datetime(job.execution_ended_at) if job.HasField("execution_ended_at") else None,
177
- job_status=to_job_status(job.status),
177
+ job_status=to_job_executor_status(job.status),
178
178
  # Sweep definition is a subclass of SweepBase so we can just copy all SweepBase fields
179
179
  # from the input sweep to the sweep data
180
180
  **{f.name: getattr(sweep, f.name) for f in dataclasses.fields(SweepBase)},
@@ -298,7 +298,7 @@ class IqmServerClient(_StationControlClientBase):
298
298
  job: proto.JobV1 = jobs.GetJobV1(proto.JobLookupV1(id=to_proto_uuid(job_id)))
299
299
  return JobData(
300
300
  job_id=from_proto_uuid(job.id),
301
- job_status=job.status, # type: ignore[arg-type]
301
+ job_status=to_job_executor_status(job.status),
302
302
  job_result=JobResult(
303
303
  job_id=from_proto_uuid(job.id),
304
304
  parallel_sweep_progress=[],
@@ -458,7 +458,7 @@ def payload_to_sweep(job_payload: bytes) -> SweepDefinition:
458
458
  return sweep
459
459
 
460
460
 
461
- def to_job_status(job_status: proto.JobStatus) -> JobExecutorStatus:
461
+ def to_job_executor_status(job_status: proto.JobStatus) -> JobExecutorStatus:
462
462
  match job_status:
463
463
  case proto.JobStatus.IN_QUEUE:
464
464
  return JobExecutorStatus.PENDING_EXECUTION
@@ -475,19 +475,6 @@ def to_job_status(job_status: proto.JobStatus) -> JobExecutorStatus:
475
475
  raise ValueError(f"Unknown job status: '{job_status}'")
476
476
 
477
477
 
478
- def to_string_job_status(job_status: proto.JobStatus) -> str:
479
- match job_status:
480
- case proto.JobStatus.IN_QUEUE:
481
- return "PENDING"
482
- case proto.JobStatus.EXECUTING:
483
- return "STARTED"
484
- case proto.JobStatus.FAILED | proto.JobStatus.INTERRUPTED | proto.JobStatus.CANCELLED:
485
- return "FAILURE"
486
- case proto.JobStatus.COMPLETED:
487
- return "SUCCESS"
488
- raise ValueError(f"Unknown job status: '{job_status}'")
489
-
490
-
491
478
  def parse_json(data: bytes) -> Any:
492
479
  return json.load(BytesIO(data))
493
480
 
@@ -89,7 +89,7 @@ class JobExecutorStatus(Enum):
89
89
  COMPILATION_STARTED = "compilation_started"
90
90
  """The job is being compiled."""
91
91
  COMPILATION_ENDED = "compilation_ended"
92
- """The job has been succesfully compiled."""
92
+ """The job has been successfully compiled."""
93
93
 
94
94
  # Executing sweep
95
95
  SAVE_SWEEP_METADATA_STARTED = "save_sweep_metadata_started"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-station-control-client
3
- Version: 11.2.0
3
+ Version: 11.3.1
4
4
  Summary: Python client for communicating with Station Control Service
5
5
  Author-email: IQM Finland Oy <info@meetiqm.com>
6
6
  License: Apache License
@@ -7,7 +7,7 @@ iqm/station_control/client/utils.py,sha256=-6K4KgOgA4iyUCqX-w26JvFxlwlGBehGj4tIW
7
7
  iqm/station_control/client/iqm_server/__init__.py,sha256=nLsRHN1rnOKXwuzaq_liUpAYV3sis5jkyHccSdacV7U,624
8
8
  iqm/station_control/client/iqm_server/error.py,sha256=a8l7UTnzfbD8KDHP-uOve77S6LR1ai9uM_J_xHbLs0Y,1175
9
9
  iqm/station_control/client/iqm_server/grpc_utils.py,sha256=nlfQoIvLrDlETP32vvm9qbkcWZbI0tLEhqXCalXO_RU,5931
10
- iqm/station_control/client/iqm_server/iqm_server_client.py,sha256=cRI4E3RYFkawngUg0U_OUNXR6jdvMnmkkz98YPILdRA,21860
10
+ iqm/station_control/client/iqm_server/iqm_server_client.py,sha256=outzqBH7Pcfbz2WErVnyinD1TMfhOuiKMLNq6GjLjkQ,21400
11
11
  iqm/station_control/client/iqm_server/proto/__init__.py,sha256=mOJQ_H-NEyJMffRaDSSZeXrScHaHaHEXULv-O_OJA3A,1345
12
12
  iqm/station_control/client/iqm_server/proto/calibration_pb2.py,sha256=gum0DGmqxhbfaar8SqahmSif1pB6hgo0pVcnoi3VMUo,3017
13
13
  iqm/station_control/client/iqm_server/proto/calibration_pb2.pyi,sha256=4lTHY_GhrsLIHqoGDkNLYu56QHzX_iHEbLaYq-HR1m8,2016
@@ -43,7 +43,7 @@ iqm/station_control/interface/station_control.py,sha256=5gtDouAQ13KnyXNQUcBrpKG9
43
43
  iqm/station_control/interface/models/__init__.py,sha256=BP9iIwHi0nw8CUzScXOsu8bhxnE_rRulOsRVO5L1hx0,1989
44
44
  iqm/station_control/interface/models/dut.py,sha256=Jp8rgi5e6ecDbU0fw9cgxn_9JczeTPkxYb7oIBv31ko,1155
45
45
  iqm/station_control/interface/models/dynamic_quantum_architecture.py,sha256=3YlI9e1XxdbkBzlOdxmzYTccJ8AJRnRSIp-JoBf8Yyw,4698
46
- iqm/station_control/interface/models/jobs.py,sha256=MGo0MOg-mTw3rF7vNCYNGAns6-eyl30ubqiEQWCFJ9c,6876
46
+ iqm/station_control/interface/models/jobs.py,sha256=C1XhqYBwFB4mfhIuYnHnU0aW2QyOWi2g9RBMfxbDhgM,6877
47
47
  iqm/station_control/interface/models/monitor.py,sha256=ItlgxtBup1hHg64uKeMKiFE7MaRRqSYdVRttsFD_XeU,1352
48
48
  iqm/station_control/interface/models/observation.py,sha256=IblYdzJN88BNlyxUVR_dIx7BgD_GHGLhHUwy89Fib-I,3281
49
49
  iqm/station_control/interface/models/observation_set.py,sha256=y6uqslVF2kO1zREPE6EtrvG9ZVrLo0S2Sk7ZhRL8pks,3993
@@ -52,8 +52,8 @@ iqm/station_control/interface/models/sequence.py,sha256=boWlMfP3woVgVObW3OaNbxsU
52
52
  iqm/station_control/interface/models/static_quantum_architecture.py,sha256=kt_rCExRd6zyatWVJCmCSf-gYdbEFfij3DfM0wBrPHI,2103
53
53
  iqm/station_control/interface/models/sweep.py,sha256=HFoFIrKhlYmHIBfGltY2O9_J28OvkkZILRbDHuqR0wc,2509
54
54
  iqm/station_control/interface/models/type_aliases.py,sha256=HbHXNbY8UJ9eqk8BiVmogF-jHrgrcJxrWtUq6atwSg4,1219
55
- iqm_station_control_client-11.2.0.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
56
- iqm_station_control_client-11.2.0.dist-info/METADATA,sha256=EHr3eHm6e0JFKzoEpdaMq1gXfdyAEPMcVAFIJjctcDk,14107
57
- iqm_station_control_client-11.2.0.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
58
- iqm_station_control_client-11.2.0.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
59
- iqm_station_control_client-11.2.0.dist-info/RECORD,,
55
+ iqm_station_control_client-11.3.1.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
56
+ iqm_station_control_client-11.3.1.dist-info/METADATA,sha256=Xgg9BAEeFj3GVLW98RXYgrdA5I6KvuRlkdTP4O60j9k,14107
57
+ iqm_station_control_client-11.3.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
58
+ iqm_station_control_client-11.3.1.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
59
+ iqm_station_control_client-11.3.1.dist-info/RECORD,,