pymodaq 4.4.2__py3-none-any.whl → 4.4.4__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.

@@ -595,14 +595,14 @@ class DAQ_Move(ParameterControlModule):
595
595
  def units(self, unit: str):
596
596
  self.settings.child('move_settings', 'units').setValue(unit)
597
597
  if self.ui is not None and config('actuator', 'display_units'):
598
- if unit == '°':
598
+ if unit == '°' or unit == 'degree':
599
599
  # special cas as pint base unit for angles are radians
600
- self.ui.set_unit_as_suffix(unit)
600
+ self.ui.set_unit_as_suffix('°')
601
601
  else:
602
602
  # if the controller units are in mm the displayed unit will be m
603
603
  # because m is the base unit
604
604
  # then the user could ask for mm, km, µm...
605
- self.ui.set_unit_as_suffix(str(Q_(1, unit).to_base_units().units))
605
+ self.ui.set_unit_as_suffix(str(Q_(1, unit).to_reduced_units().units))
606
606
 
607
607
  def update_settings(self):
608
608
 
@@ -141,7 +141,11 @@ def comon_parameters_fun(is_multiaxes=False, axes_names=None,
141
141
 
142
142
  is_multiaxes = len(axis_names) > 1
143
143
  if isinstance(axis_names, list):
144
- axis_name = axis_names[0]
144
+ if len(axis_names) > 0:
145
+ axis_name = axis_names[0]
146
+ else:
147
+ axis_names = ['']
148
+ axis_name = ''
145
149
  elif isinstance(axis_names, dict):
146
150
  axis_name = axis_names[list(axis_names.keys())[0]]
147
151
  params = [
@@ -867,7 +871,7 @@ class DAQ_Move_TCP_server(DAQ_Move_base, TCPServer):
867
871
  message_list = ["Quit", "Status", "Done", "Server Closed", "Info", "Infos", "Info_xml", "move_abs",
868
872
  'move_home', 'move_rel', 'get_actuator_value', 'stop_motion', 'position_is', 'move_done']
869
873
  socket_types = ["ACTUATOR"]
870
- params = comon_parameters() + tcp_parameters
874
+ params = comon_parameters_fun() + tcp_parameters
871
875
 
872
876
  def __init__(self, parent=None, params_state=None):
873
877
  """
@@ -939,6 +943,12 @@ class DAQ_Move_TCP_server(DAQ_Move_base, TCPServer):
939
943
  initialized = True
940
944
  return info, initialized
941
945
 
946
+ def read_infos(self, sock: Socket = None, infos=''):
947
+ """Reimplemented to get the units"""
948
+ super().read_infos(sock, infos)
949
+
950
+ self.axis_unit = self.settings['settings_client', 'units']
951
+
942
952
  def close(self):
943
953
  """
944
954
  Should be used to uninitialize hardware.
pymodaq/resources/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- version = '4.4.2'
1
+ version = '4.4.4'
2
2
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymodaq
3
- Version: 4.4.2
3
+ Version: 4.4.4
4
4
  Summary: Modular Data Acquisition with Python
5
5
  Project-URL: Homepage, http://pymodaq.cnrs.fr
6
6
  Project-URL: Source, https://github.com/PyMoDAQ/PyMoDAQ
@@ -3,12 +3,12 @@ pymodaq/dashboard.py,sha256=4fbV92erom0yWwqPMtx3KW1q-d6QYflV-EhOZMg24a4,64476
3
3
  pymodaq/icon.ico,sha256=hOHHfNDENKphQvG1WDleSEYcHukneR2eRFJu8isIlD4,74359
4
4
  pymodaq/splash.png,sha256=ow8IECF3tPRUMA4tf2tMu1aRiMaxx91_Y2ckVxkrmF0,53114
5
5
  pymodaq/control_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- pymodaq/control_modules/daq_move.py,sha256=L4lW_VfdBKmrlpLkKwbNitDeLHbFWk6Lbq4T5k-6xiM,37323
6
+ pymodaq/control_modules/daq_move.py,sha256=dUtqqmusaTSmnCcR-6tGHRwXM7zwV30viJFyQymZpAc,37346
7
7
  pymodaq/control_modules/daq_move_ui.py,sha256=IbqNAErwXGjKUbYEptvZUz3J8MapNBFIbQnUf9nQrMw,15753
8
8
  pymodaq/control_modules/daq_viewer.py,sha256=5CYmdWHGE7sQApeMfdWNV3zbPyoxxYtzFlQ1PaEw4fI,57883
9
9
  pymodaq/control_modules/daq_viewer_ui.py,sha256=FWP3jdIOR9vTgYqNaaodteGZ3dwgQ1GdWKrOpOAuSrs,15693
10
10
  pymodaq/control_modules/mocks.py,sha256=hh_xSWp9g1UV3NAQVD9Ft9tNWfTsSvKU0OU0trgzP2w,1956
11
- pymodaq/control_modules/move_utility_classes.py,sha256=WwZku-xFsyqun25IG9570_OU5x1frA9rIrxVu6XJKIk,42599
11
+ pymodaq/control_modules/move_utility_classes.py,sha256=rtCTwYxb1gc7RSCNqT-MKm3LnAwOkN0Z3H7jTS1LRo8,42921
12
12
  pymodaq/control_modules/utils.py,sha256=5YdSwq_lFJm7IalYWe_Hn1U4LUoUmo1gedvV9UguU0Y,20016
13
13
  pymodaq/control_modules/viewer_utility_classes.py,sha256=OHxwue1t3z2AXyeqNjnwPT2pMc8yXhnqyiWc9IdCI2c,26841
14
14
  pymodaq/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -58,7 +58,7 @@ pymodaq/post_treatment/daq_measurement/daq_measurement_GUI.py,sha256=1u7hWDaiwsZ
58
58
  pymodaq/post_treatment/daq_measurement/daq_measurement_GUI.ui,sha256=PyzbCWPMkh5oIYYteZczXyWMeHKW9EJmM1QlzXhnyTk,7037
59
59
  pymodaq/post_treatment/daq_measurement/daq_measurement_main.py,sha256=CAKwcWMOD86aXB8mbdxOK7e8nZRos5d59FzDtqK1QoY,17093
60
60
  pymodaq/post_treatment/daq_measurement/process_from_QtDesigner_DAQ_Measurement_GUI.bat,sha256=e1tu2A67MS9fk3jhriF6saQgRxWIucIvNW92iWXFP6E,164
61
- pymodaq/resources/VERSION,sha256=u7UAa-_KS1Q9ODCq7-42m4PKdNLnm3M_qQLvikeM9Hc,19
61
+ pymodaq/resources/VERSION,sha256=IfNU24BrE_7EQzoH3oufI-vneO5-lJnN8XQVcT-pk8w,19
62
62
  pymodaq/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  pymodaq/resources/config_template.toml,sha256=d3pofgIK5FxaRMELAI1qEsRcMD3GlYd87zZjDj9G9m0,3210
64
64
  pymodaq/resources/preset_default.xml,sha256=Dt8iWLwPPOPtcG00JCVP-mh-G7KC6B0YN8hd8RQdnNI,27256
@@ -438,8 +438,8 @@ pymodaq/utils/tcp_ip/__init__.py,sha256=1e_EK0AgvdoLAD_CSGGEaITZdy6OWCO7ih9IAIp7
438
438
  pymodaq/utils/tcp_ip/mysocket.py,sha256=StAWj8dzHeMnbLj68Sel81uWFy-YkKVNRnVf7gXrESI,3452
439
439
  pymodaq/utils/tcp_ip/serializer.py,sha256=htVQCE4saRBMeIcseEyxTt5G58A341m6OGkaJUA34Wk,27766
440
440
  pymodaq/utils/tcp_ip/tcp_server_client.py,sha256=xIMTNgVW_rKK0yTi4FDNFLf85-Akb27Jz2LdrvOrP68,30660
441
- pymodaq-4.4.2.dist-info/METADATA,sha256=wc6QZZgW3pBAs85kQQ88JdPtJ8omKojHa1RDSgtuR3s,7623
442
- pymodaq-4.4.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
443
- pymodaq-4.4.2.dist-info/entry_points.txt,sha256=RAzdYNjvUT28I2eiCKki_g2NzXq0woWxhev6lwzwRv8,348
444
- pymodaq-4.4.2.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
445
- pymodaq-4.4.2.dist-info/RECORD,,
441
+ pymodaq-4.4.4.dist-info/METADATA,sha256=99QWFIuxJRvs7aDQhZQgfk2iv3rVqyKSCi0nGgQ9xJU,7623
442
+ pymodaq-4.4.4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
443
+ pymodaq-4.4.4.dist-info/entry_points.txt,sha256=RAzdYNjvUT28I2eiCKki_g2NzXq0woWxhev6lwzwRv8,348
444
+ pymodaq-4.4.4.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
445
+ pymodaq-4.4.4.dist-info/RECORD,,