zaber-motion 7.8.2__py3-none-win_arm64.whl → 7.8.4__py3-none-win_arm64.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.
- zaber_motion/dto/ascii/can_set_state_device_response.py +13 -13
- zaber_motion/library.py +1 -1
- zaber_motion/microscopy/wdi_autofocus_provider.py +2 -2
- zaber_motion/version.py +1 -1
- {zaber_motion-7.8.2.dist-info → zaber_motion-7.8.4.dist-info}/METADATA +1 -1
- {zaber_motion-7.8.2.dist-info → zaber_motion-7.8.4.dist-info}/RECORD +10 -10
- {zaber_motion-7.8.2.dist-info → zaber_motion-7.8.4.dist-info}/WHEEL +1 -1
- zaber_motion_bindings/zaber-motion-core-windows-arm64.dll +0 -0
- {zaber_motion-7.8.2.dist-info → zaber_motion-7.8.4.dist-info}/licenses/LICENSE.txt +0 -0
- {zaber_motion-7.8.2.dist-info → zaber_motion-7.8.4.dist-info}/top_level.txt +0 -0
|
@@ -13,7 +13,7 @@ class CanSetStateDeviceResponse:
|
|
|
13
13
|
An object containing any setup issues that will prevent setting a state to a given device.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
axis_responses: List[CanSetStateAxisResponse]
|
|
17
17
|
"""
|
|
18
18
|
A list of axis responses, potentially with messages for errors
|
|
19
19
|
which would block setting the state of the device's axes.
|
|
@@ -28,7 +28,7 @@ class CanSetStateDeviceResponse:
|
|
|
28
28
|
def zero_values() -> 'CanSetStateDeviceResponse':
|
|
29
29
|
return CanSetStateDeviceResponse(
|
|
30
30
|
error=None,
|
|
31
|
-
|
|
31
|
+
axis_responses=[],
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
@staticmethod
|
|
@@ -45,14 +45,14 @@ class CanSetStateDeviceResponse:
|
|
|
45
45
|
def to_dict(self) -> Dict[str, Any]:
|
|
46
46
|
return {
|
|
47
47
|
'error': str(self.error) if self.error is not None else None,
|
|
48
|
-
'
|
|
48
|
+
'axisResponses': [item.to_dict() for item in self.axis_responses] if self.axis_responses is not None else [],
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
@staticmethod
|
|
52
52
|
def from_dict(data: Dict[str, Any]) -> 'CanSetStateDeviceResponse':
|
|
53
53
|
return CanSetStateDeviceResponse(
|
|
54
54
|
error=data.get('error'), # type: ignore
|
|
55
|
-
|
|
55
|
+
axis_responses=[CanSetStateAxisResponse.from_dict(item) for item in data.get('axisResponses')], # type: ignore
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
def validate(self) -> None:
|
|
@@ -61,15 +61,15 @@ class CanSetStateDeviceResponse:
|
|
|
61
61
|
if not isinstance(self.error, str):
|
|
62
62
|
raise ValueError(f'Property "Error" of "CanSetStateDeviceResponse" is not a string.')
|
|
63
63
|
|
|
64
|
-
if self.
|
|
65
|
-
if not isinstance(self.
|
|
66
|
-
raise ValueError('Property "
|
|
64
|
+
if self.axis_responses is not None:
|
|
65
|
+
if not isinstance(self.axis_responses, Iterable):
|
|
66
|
+
raise ValueError('Property "AxisResponses" of "CanSetStateDeviceResponse" is not iterable.')
|
|
67
67
|
|
|
68
|
-
for i,
|
|
69
|
-
if
|
|
70
|
-
raise ValueError(f'Item {i} in property "
|
|
68
|
+
for i, axis_responses_item in enumerate(self.axis_responses):
|
|
69
|
+
if axis_responses_item is None:
|
|
70
|
+
raise ValueError(f'Item {i} in property "AxisResponses" of "CanSetStateDeviceResponse" is None.')
|
|
71
71
|
|
|
72
|
-
if not isinstance(
|
|
73
|
-
raise ValueError(f'Item {i} in property "
|
|
72
|
+
if not isinstance(axis_responses_item, CanSetStateAxisResponse):
|
|
73
|
+
raise ValueError(f'Item {i} in property "AxisResponses" of "CanSetStateDeviceResponse" is not an instance of "CanSetStateAxisResponse".')
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
axis_responses_item.validate()
|
zaber_motion/library.py
CHANGED
|
@@ -198,7 +198,7 @@ class WdiAutofocusProvider:
|
|
|
198
198
|
Generic write operation.
|
|
199
199
|
|
|
200
200
|
Args:
|
|
201
|
-
register_id: Register address to
|
|
201
|
+
register_id: Register address to write to.
|
|
202
202
|
size: Data size to write. Valid values are (0,1,2,4). Determines the data type (Nil, Byte, Word, DWord).
|
|
203
203
|
data: Array of values to write to the register. Empty array is allowed.
|
|
204
204
|
offset: Offset within the register (defaults to 0).
|
|
@@ -226,7 +226,7 @@ class WdiAutofocusProvider:
|
|
|
226
226
|
Generic write operation.
|
|
227
227
|
|
|
228
228
|
Args:
|
|
229
|
-
register_id: Register address to
|
|
229
|
+
register_id: Register address to write to.
|
|
230
230
|
size: Data size to write. Valid values are (0,1,2,4). Determines the data type (Nil, Byte, Word, DWord).
|
|
231
231
|
data: Array of values to write to the register. Empty array is allowed.
|
|
232
232
|
offset: Offset within the register (defaults to 0).
|
zaber_motion/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.8.
|
|
1
|
+
__version__ = "7.8.4"
|
|
@@ -9,13 +9,13 @@ zaber_motion/call.py,sha256=X8iXJdlO1AvnMeDFmKXEPY8UFQWn8EXZmoXzcWO_ihc,5404
|
|
|
9
9
|
zaber_motion/convert_exception.py,sha256=0ANPUmugxDvCGMURPN8Lqyi-3cU80L323xrsF19wbIk,8625
|
|
10
10
|
zaber_motion/dto_object.py,sha256=TrwKMn_dbeh4DnCToS507G5eRJiW0_ZcGj9Q5RaSjqY,377
|
|
11
11
|
zaber_motion/events.py,sha256=8UB_4SZz3HDb8VqborlHQGt7w0Nd11rEYblbVQxyckE,3510
|
|
12
|
-
zaber_motion/library.py,sha256=
|
|
12
|
+
zaber_motion/library.py,sha256=2rfHaqA0Ozo7shmAYPcI3ZIIaHJlYS0Uzr4kvFfG8cI,5096
|
|
13
13
|
zaber_motion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
zaber_motion/serialization.py,sha256=0yLY0dA7XRjMAlI-wr92arZ6yRO97CyC_Rzc9BBHJRk,1019
|
|
15
15
|
zaber_motion/tools.py,sha256=ZI8xYDa6SFlMghP2qklV73Z0TJcezC6trdAAXVI6PoM,2291
|
|
16
16
|
zaber_motion/unit_table.py,sha256=DtphJjbzD1LSHpd4-idwIE2Dif89L7RrmeQI3LkOp40,2583
|
|
17
17
|
zaber_motion/units.py,sha256=h1sEuCQR0q8SeCdWd2V8X62VZJBxMda9Kef724f6yc0,11059
|
|
18
|
-
zaber_motion/version.py,sha256=
|
|
18
|
+
zaber_motion/version.py,sha256=GTvsxN0HplKv06lLoAKfohFj3XawSa1LCUQOcb0T5fo,23
|
|
19
19
|
zaber_motion/ascii/__init__.py,sha256=9RFjxHOckdwD6DlAvmVfpWhR1U9-lWyU1t3EE0C2Glc,4921
|
|
20
20
|
zaber_motion/ascii/all_axes.py,sha256=KEynCocZ6wPUur7xgA7KUyyLWgsCqrsx7zDoMfVYeRM,11135
|
|
21
21
|
zaber_motion/ascii/axis.py,sha256=O5nZ0xIG_vRYMLZcEB_yV7UWi0XHtn4NmfBlh0QFtkQ,59284
|
|
@@ -62,7 +62,7 @@ zaber_motion/dto/ascii/alert_event.py,sha256=-h1brDrknSwsSFuAxj476X7c884A0by9dpE
|
|
|
62
62
|
zaber_motion/dto/ascii/axis_identity.py,sha256=vuL9WwczCD4xC38aEM95EIk6FLBqcTczujDLWX6UuMI,4385
|
|
63
63
|
zaber_motion/dto/ascii/axis_type.py,sha256=x5nca2ryMrhxY3s5KDAemIVRgp6KPRh9qoIEPRLjCDE,251
|
|
64
64
|
zaber_motion/dto/ascii/can_set_state_axis_response.py,sha256=zw12la7_4cwkN4Wn5bQqQjXw_dlFeOW11s5hm8k9chw,2575
|
|
65
|
-
zaber_motion/dto/ascii/can_set_state_device_response.py,sha256=
|
|
65
|
+
zaber_motion/dto/ascii/can_set_state_device_response.py,sha256=BbC9HmmtWLsyQ3ZlQCwkxSXUZ2eitmJx60DahFANcSk,3217
|
|
66
66
|
zaber_motion/dto/ascii/conversion_factor.py,sha256=68PrQ3mPbaFvl_sgU3uF7nfq0PBe3W3iwY2aLHYEN-s,2737
|
|
67
67
|
zaber_motion/dto/ascii/device_identity.py,sha256=P7ar3iOeg3-SzwQaa-WFbGhK964pEnPZvEQFvGAHfSU,4853
|
|
68
68
|
zaber_motion/dto/ascii/device_io_info.py,sha256=0PXivCh4xOBMP2-5f6DI7TZwHB09q1g7Xf5ntYKQ53I,4445
|
|
@@ -476,13 +476,13 @@ zaber_motion/microscopy/illuminator.py,sha256=w63vgAmZlZmse_bIsEmglg899WkqbrvD_y
|
|
|
476
476
|
zaber_motion/microscopy/illuminator_channel.py,sha256=17VoYKvazUnPDh9QvX5OidUfkBYWpHWrLIAcSnTsO00,21067
|
|
477
477
|
zaber_motion/microscopy/microscope.py,sha256=GzQuo-uZO8ksMoJ2sdDsTEV4aRmWqBBP7gLx5iJBlNM,8867
|
|
478
478
|
zaber_motion/microscopy/objective_changer.py,sha256=CcuQbzK3GvQXpWY10hkf74eFM6Q8R-oHEE90rw5yjZo,13946
|
|
479
|
-
zaber_motion/microscopy/wdi_autofocus_provider.py,sha256=
|
|
479
|
+
zaber_motion/microscopy/wdi_autofocus_provider.py,sha256=bg5MaP1cvvPGX8kFMqfXROvtns1kj4pGpBEblc81DPw,11886
|
|
480
480
|
zaber_motion/product/__init__.py,sha256=ZGZzfMmsd1ZWwLk0SZ3Ac1Une88SZQHuuzEFGgd6ork,538
|
|
481
481
|
zaber_motion/product/process.py,sha256=IRHDUcQZItJSGIhW20KTiG4KoHxgzheqLUYSn-rwNnQ,28276
|
|
482
482
|
zaber_motion/product/process_controller.py,sha256=89s_7EQ5RWPjXZ1krDbOt7oc87wSB-2SRHDoiVCE-L0,4319
|
|
483
|
-
zaber_motion-7.8.
|
|
484
|
-
zaber_motion_bindings/zaber-motion-core-windows-arm64.dll,sha256=
|
|
485
|
-
zaber_motion-7.8.
|
|
486
|
-
zaber_motion-7.8.
|
|
487
|
-
zaber_motion-7.8.
|
|
488
|
-
zaber_motion-7.8.
|
|
483
|
+
zaber_motion-7.8.4.dist-info/licenses/LICENSE.txt,sha256=H7YIgjgmcE_L-pfvZTWUoLrk7p0LiiKQh5_oeIWux-k,111363
|
|
484
|
+
zaber_motion_bindings/zaber-motion-core-windows-arm64.dll,sha256=bjiwmfL_AP_-QNNU6WRHFQnWm34bTIMnrOZ8ajIt7IQ,14165504
|
|
485
|
+
zaber_motion-7.8.4.dist-info/METADATA,sha256=wpRmhbfrq7JYbCcNhOUvPXIwWygJiRG83mF_FmMsgf4,129838
|
|
486
|
+
zaber_motion-7.8.4.dist-info/WHEEL,sha256=PtZ7_1TP6Cu1E5x_voSGj5l6q0pu2rBD8e6tfv65a50,97
|
|
487
|
+
zaber_motion-7.8.4.dist-info/top_level.txt,sha256=ypgkPvPad6Oge50CT6unnvxCEliKUB6olL6CUUER1SA,51
|
|
488
|
+
zaber_motion-7.8.4.dist-info/RECORD,,
|
|
Binary file
|
|
File without changes
|
|
File without changes
|