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

@@ -783,7 +783,7 @@ class DAQ_Move_Hardware(QObject):
783
783
  try:
784
784
  infos = self.hardware.ini_stage(controller) # return edict(info="", controller=, stage=)
785
785
  except Exception as e:
786
- logger.exception('Hardware couldn\'t be initialized' + str(e))
786
+ logger.exception("Hardware couldn't be initialized", exc_info=e)
787
787
  infos = str(e), False
788
788
 
789
789
  if isinstance(infos, edict): # following old plugin templating
@@ -810,7 +810,7 @@ class DAQ_Move_Hardware(QObject):
810
810
  position = check_units(position, self.hardware.axis_unit)
811
811
  self.hardware.move_is_done = False
812
812
  self.hardware.ispolling = polling
813
- if self.hardware.data_actuator_type.name == 'float':
813
+ if self.hardware.data_actuator_type == self.hardware.data_actuator_type.float:
814
814
  self.hardware.move_abs(position.units_as(self.hardware.axis_unit).value()) # convert to plugin controller current axis units
815
815
  else:
816
816
  position.units = self.hardware.axis_unit # convert to plugin controller current axis units
@@ -1309,7 +1309,7 @@ class DAQ_Detector(QObject):
1309
1309
  status.controller = self.detector.controller
1310
1310
 
1311
1311
  except Exception as e:
1312
- logger.exception('Hardware couldn\'t be initialized' + str(e))
1312
+ logger.exception("Hardware couldn't be initialized", exc_info=e)
1313
1313
  infos = str(e), False
1314
1314
  status.controller = None
1315
1315
 
@@ -697,7 +697,7 @@ class DAQ_Move_base(QObject):
697
697
  position = self.get_actuator_value()
698
698
  if position.name != self._title: # make sure the emitted DataActuator has the name of the real implementation
699
699
  #of the plugin
700
- position = DataActuator(self._title, data=position.value(),
700
+ position = DataActuator(self._title, data=position.value(self.axis_unit),
701
701
  units=self.axis_unit)
702
702
  self.move_done_signal.emit(position)
703
703
  self.move_is_done = True
@@ -119,7 +119,7 @@ class Scanner(QObject, ParameterManager):
119
119
  self.settings.child('n_steps').setValue(self._scanner.evaluate_steps())
120
120
 
121
121
  @property
122
- def actuators(self):
122
+ def actuators(self) -> list[DAQ_Move]:
123
123
  """list of str: Returns as a list the name of the selected actuators to describe the actual scan"""
124
124
  return self._actuators
125
125
 
@@ -206,7 +206,8 @@ class Scanner(QObject, ParameterManager):
206
206
  """ Extract the actuators positions at a given index in the scan as a DataToExport of DataActuators"""
207
207
  dte = DataToExport('scanner')
208
208
  for ind, pos in enumerate(self.positions[index]):
209
- dte.append(DataActuator(self.actuators[ind].title, data=float(pos)))
209
+ dte.append(DataActuator(self.actuators[ind].title, data=float(pos),
210
+ units=self.actuators[ind].units))
210
211
  return dte
211
212
 
212
213
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pymodaq
3
- Version: 5.0.15
3
+ Version: 5.0.17
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=rUrtOdaK31SKhl1XFagZdvVAEqEwU37WAbplciE6MhE,75119
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=emJLJ5t4w-X8L-yo5Jbwg7g_4hP1zPaoq2yGR9S0N5M,38833
6
+ pymodaq/control_modules/daq_move.py,sha256=yxoVmI_mLu0X4M60ofJeKYxR_0AlkNvF6WQLYXCK11M,38861
7
7
  pymodaq/control_modules/daq_move_ui.py,sha256=bdkRX0wjkQuFDr4OT1Q6jT_15DEWV1dn2R6WF50H23s,16811
8
- pymodaq/control_modules/daq_viewer.py,sha256=f9WYEWIlVjnEakesObhsoLBIWfv1tv4Q8TopqfP8lsg,58602
8
+ pymodaq/control_modules/daq_viewer.py,sha256=XJUkKSmW4ktWSNIRsF_bZ-GG74h4-a82tGijZPrO3FA,58604
9
9
  pymodaq/control_modules/daq_viewer_ui.py,sha256=7XTidYrYlzj--DbbE1Wx4UBjvp1upGpziGhSTPoMKCc,15677
10
10
  pymodaq/control_modules/mocks.py,sha256=CdczKJDAuM2oL7VvIpSBWiYtTCqK_6x9unxavezp3_s,1954
11
- pymodaq/control_modules/move_utility_classes.py,sha256=xV_sUhNAPvOY9CFVymI4JbS5Vjyfmhqgu4efZWb_f1A,44368
11
+ pymodaq/control_modules/move_utility_classes.py,sha256=zAiOFNEiLVFSmNPMKQRVbWwx7osMgU7ocgBGraEOxF8,44382
12
12
  pymodaq/control_modules/utils.py,sha256=E94gyLrh7fkeppwihHXcwNyKD3CqBZvkMkk8X4fl_UE,20897
13
13
  pymodaq/control_modules/viewer_utility_classes.py,sha256=1TcyAC7AiJNKvJ6OGNOYoyFvRCT-u6RBbFv-X8IkZYA,28076
14
14
  pymodaq/daq_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -99,7 +99,7 @@ pymodaq/utils/scanner/__init__.py,sha256=LqY1QwGnJEgr8CcW8uLWzbWy55Nvkmjmww4nl7x
99
99
  pymodaq/utils/scanner/scan_config.py,sha256=GJeH8oeZ_zMtujwkLM1jpKDQFLFKIN1wlkxXbOv6nWM,325
100
100
  pymodaq/utils/scanner/scan_factory.py,sha256=fu4kQrAoYsXeVg1VlHT2cyLZTuCQBJcz6X97CgMb0kw,8577
101
101
  pymodaq/utils/scanner/scan_selector.py,sha256=uu55xcijjg1fcvF59VVbtRLzXLoxb_3klEJPLiAuyws,16319
102
- pymodaq/utils/scanner/scanner.py,sha256=QxQwkkGpJvBfaoUQHGX6EK2EbIQGQFj47qBd8VQ7A0k,10898
102
+ pymodaq/utils/scanner/scanner.py,sha256=007u4TVDTvxRDWnuXCWDNVOiUmflAJB99EjQ33Fh7VM,10985
103
103
  pymodaq/utils/scanner/utils.py,sha256=YjjrWWKs9q_OgP5xK277IyEsMqp15qFxU19kQ8f5R-c,3680
104
104
  pymodaq/utils/scanner/scanners/_1d_scanners.py,sha256=ArT1H8zl1_TztvxelDhjviEBtyv4AOO9Rt54EMKIuuQ,7812
105
105
  pymodaq/utils/scanner/scanners/_2d_scanners.py,sha256=AAHHHgyMtkXQTWnuPh3IY5ytATG5Lqc-AHJRpXIYApw,13851
@@ -114,8 +114,8 @@ pymodaq/utils/tcp_ip/__init__.py,sha256=1e_EK0AgvdoLAD_CSGGEaITZdy6OWCO7ih9IAIp7
114
114
  pymodaq/utils/tcp_ip/mysocket.py,sha256=03FaQskso8nLLAsN-ijX-RazXbeMezRnAPvsRxTQa4k,326
115
115
  pymodaq/utils/tcp_ip/serializer.py,sha256=Bp6ZpGqMdZlX4CnT371d7ZYqIp7UygsRsE9XFkWZrto,400
116
116
  pymodaq/utils/tcp_ip/tcp_server_client.py,sha256=eL-Q1HnnaAG8wfTUb9unEIiNFApMXzfzfveUWoC0_mg,30657
117
- pymodaq-5.0.15.dist-info/METADATA,sha256=xq6FXBAaDD7tIVkrrkm0toiWjaIeLdoQa2EUS6jpaAA,12902
118
- pymodaq-5.0.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
119
- pymodaq-5.0.15.dist-info/entry_points.txt,sha256=DvPq6fmIPH2JNsCqHDhn1xEj1kX5tfuc7xQ8-l5S2EU,387
120
- pymodaq-5.0.15.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
121
- pymodaq-5.0.15.dist-info/RECORD,,
117
+ pymodaq-5.0.17.dist-info/METADATA,sha256=JcDMfoz7bDfgqc2mEwTD0YnMih2i2RZSrgvayLmX1yA,12902
118
+ pymodaq-5.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
119
+ pymodaq-5.0.17.dist-info/entry_points.txt,sha256=DvPq6fmIPH2JNsCqHDhn1xEj1kX5tfuc7xQ8-l5S2EU,387
120
+ pymodaq-5.0.17.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
121
+ pymodaq-5.0.17.dist-info/RECORD,,