pymodaq 5.0.8__py3-none-any.whl → 5.0.9__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.
Potentially problematic release.
This version of pymodaq might be problematic. Click here for more details.
- pymodaq/control_modules/move_utility_classes.py +9 -2
- {pymodaq-5.0.8.dist-info → pymodaq-5.0.9.dist-info}/METADATA +1 -1
- {pymodaq-5.0.8.dist-info → pymodaq-5.0.9.dist-info}/RECORD +6 -6
- {pymodaq-5.0.8.dist-info → pymodaq-5.0.9.dist-info}/WHEEL +0 -0
- {pymodaq-5.0.8.dist-info → pymodaq-5.0.9.dist-info}/entry_points.txt +0 -0
- {pymodaq-5.0.8.dist-info → pymodaq-5.0.9.dist-info}/licenses/LICENSE +0 -0
|
@@ -815,14 +815,21 @@ class DAQ_Move_base(QObject):
|
|
|
815
815
|
""" Get the current position from the hardware with scaling conversion.
|
|
816
816
|
"""
|
|
817
817
|
if self.settings['scaling', 'use_scaling']:
|
|
818
|
-
|
|
818
|
+
if self.data_actuator_type == DataActuatorType.float:
|
|
819
|
+
pos = (pos - self.settings['scaling', 'offset']) * self.settings['scaling', 'scaling']
|
|
820
|
+
else:
|
|
821
|
+
pos = (pos - Q_(self.settings['scaling', 'offset'],
|
|
822
|
+
self.axis_unit)) * self.settings['scaling', 'scaling']
|
|
819
823
|
return pos
|
|
820
824
|
|
|
821
825
|
def set_position_with_scaling(self, pos: DataActuator) -> DataActuator:
|
|
822
826
|
""" Set the current position from the parameter and hardware with scaling conversion.
|
|
823
827
|
"""
|
|
824
828
|
if self.settings['scaling', 'use_scaling']:
|
|
825
|
-
|
|
829
|
+
if self.data_actuator_type == DataActuatorType.DataActuator:
|
|
830
|
+
pos = pos / self.settings['scaling', 'scaling'] + Q_(self.settings['scaling', 'offset'], self.axis_unit)
|
|
831
|
+
else:
|
|
832
|
+
pos = pos / self.settings['scaling', 'scaling'] + self.settings['scaling', 'offset']
|
|
826
833
|
return pos
|
|
827
834
|
|
|
828
835
|
def set_position_relative_with_scaling(self, pos: DataActuator) -> DataActuator:
|
|
@@ -9,7 +9,7 @@ pymodaq/control_modules/daq_move_ui.py,sha256=bdkRX0wjkQuFDr4OT1Q6jT_15DEWV1dn2R
|
|
|
9
9
|
pymodaq/control_modules/daq_viewer.py,sha256=f9WYEWIlVjnEakesObhsoLBIWfv1tv4Q8TopqfP8lsg,58602
|
|
10
10
|
pymodaq/control_modules/daq_viewer_ui.py,sha256=7XTidYrYlzj--DbbE1Wx4UBjvp1upGpziGhSTPoMKCc,15677
|
|
11
11
|
pymodaq/control_modules/mocks.py,sha256=CdczKJDAuM2oL7VvIpSBWiYtTCqK_6x9unxavezp3_s,1954
|
|
12
|
-
pymodaq/control_modules/move_utility_classes.py,sha256=
|
|
12
|
+
pymodaq/control_modules/move_utility_classes.py,sha256=nT-uccyXon8DFsDlVa66Sx2Ph2bXt9GrQsN91Th3Kso,44056
|
|
13
13
|
pymodaq/control_modules/utils.py,sha256=E94gyLrh7fkeppwihHXcwNyKD3CqBZvkMkk8X4fl_UE,20897
|
|
14
14
|
pymodaq/control_modules/viewer_utility_classes.py,sha256=1TcyAC7AiJNKvJ6OGNOYoyFvRCT-u6RBbFv-X8IkZYA,28076
|
|
15
15
|
pymodaq/daq_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -115,8 +115,8 @@ pymodaq/utils/tcp_ip/__init__.py,sha256=1e_EK0AgvdoLAD_CSGGEaITZdy6OWCO7ih9IAIp7
|
|
|
115
115
|
pymodaq/utils/tcp_ip/mysocket.py,sha256=03FaQskso8nLLAsN-ijX-RazXbeMezRnAPvsRxTQa4k,326
|
|
116
116
|
pymodaq/utils/tcp_ip/serializer.py,sha256=Bp6ZpGqMdZlX4CnT371d7ZYqIp7UygsRsE9XFkWZrto,400
|
|
117
117
|
pymodaq/utils/tcp_ip/tcp_server_client.py,sha256=eL-Q1HnnaAG8wfTUb9unEIiNFApMXzfzfveUWoC0_mg,30657
|
|
118
|
-
pymodaq-5.0.
|
|
119
|
-
pymodaq-5.0.
|
|
120
|
-
pymodaq-5.0.
|
|
121
|
-
pymodaq-5.0.
|
|
122
|
-
pymodaq-5.0.
|
|
118
|
+
pymodaq-5.0.9.dist-info/METADATA,sha256=NpHHxGUyK4W_14veaqXPUs-qEQVXJFHw1NbPVpeOckU,12885
|
|
119
|
+
pymodaq-5.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
120
|
+
pymodaq-5.0.9.dist-info/entry_points.txt,sha256=DvPq6fmIPH2JNsCqHDhn1xEj1kX5tfuc7xQ8-l5S2EU,387
|
|
121
|
+
pymodaq-5.0.9.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
|
|
122
|
+
pymodaq-5.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|