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

@@ -294,7 +294,7 @@ class DAQ_Move_base(QObject):
294
294
  """ To be subclassed, in order to init specific attributes needed by the real implementation"""
295
295
  self.controller = None
296
296
 
297
- def ini_stage_init(self, old_controller=None, new_controller=None):
297
+ def ini_stage_init(self, old_controller=None, new_controller=None, slave_controller=None):
298
298
  """Manage the Master/Slave controller issue
299
299
 
300
300
  First initialize the status dictionary
@@ -312,8 +312,11 @@ class DAQ_Move_base(QObject):
312
312
  The particular object that allow the communication with the hardware, in general a python wrapper around the
313
313
  hardware library. In case of Master it is the new instance of your plugin controller
314
314
  """
315
+ if old_controller is None and slave_controller is not None:
316
+ old_controller = slave_controller
317
+
315
318
  self.status.update(edict(info="", controller=None, initialized=False))
316
- if self.settings['multiaxes', 'ismultiaxes'] and self.settings['multiaxes', 'multi_status'] == "Slave":
319
+ if self.settings['multiaxes', 'ismultiaxes'] and not self.is_master:
317
320
  if old_controller is None:
318
321
  raise Exception('no controller has been defined externally while this axe is a slave one')
319
322
  else:
@@ -227,7 +227,7 @@ class DAQ_Viewer_base(QObject):
227
227
  """
228
228
  pass
229
229
 
230
- def ini_detector_init(self, old_controller=None, new_controller=None):
230
+ def ini_detector_init(self, old_controller=None, new_controller=None, slave_controller=None):
231
231
  """Manage the Master/Slave controller issue
232
232
 
233
233
  First initialize the status dictionary
@@ -245,6 +245,8 @@ class DAQ_Viewer_base(QObject):
245
245
  The particular object that allow the communication with the hardware, in general a python wrapper around the
246
246
  hardware library. In case of Master it is the new instance of your plugin controller
247
247
  """
248
+ if old_controller is None and slave_controller is not None:
249
+ old_controller = slave_controller
248
250
  self.status.update(edict(info="", controller=None, initialized=False))
249
251
  if self.settings['controller_status'] == "Slave":
250
252
  if old_controller is None:
pymodaq/resources/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- version = '4.3.5'
1
+ version = '4.3.6'
2
2
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymodaq
3
- Version: 4.3.5
3
+ Version: 4.3.6
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
@@ -8,9 +8,9 @@ pymodaq/control_modules/daq_move_ui.py,sha256=euA8_utFfiscd9ahZxRTqqTiCSrNB4CKCL
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=84xsY5LJz-KEVaXpVK0rBUs6TAV1qQwm2UWxaNIfNAM,35339
11
+ pymodaq/control_modules/move_utility_classes.py,sha256=u4GLi7SUqwJrw9etw-U33UnsW64TgCy2VCaJ0WkTsnI,35442
12
12
  pymodaq/control_modules/utils.py,sha256=5YdSwq_lFJm7IalYWe_Hn1U4LUoUmo1gedvV9UguU0Y,20016
13
- pymodaq/control_modules/viewer_utility_classes.py,sha256=mhUNZCx0SzaZJtxuKBMDcW5BfCY7hGPowJyQtQquwNE,26704
13
+ pymodaq/control_modules/viewer_utility_classes.py,sha256=OHxwue1t3z2AXyeqNjnwPT2pMc8yXhnqyiWc9IdCI2c,26841
14
14
  pymodaq/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  pymodaq/examples/custom_app.py,sha256=2wQR0hlPWjZrWK0abNF6ASv8iQyJqRn2CKnBa_nAgN4,10452
16
16
  pymodaq/examples/custom_viewer.py,sha256=nUj5n6l7DSyh-qaXboNBfXKa9mAiXrHSiOcuFL1ayRE,4814
@@ -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=0IjdCbIfZfg9UZFoqckqiyGBwq0UheKTOg6QR2i3-Xw,19
61
+ pymodaq/resources/VERSION,sha256=tropgff0ZsS5bHlAJDJj5zie4H5gkkIz3VojWABtDdI,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=oTQ24JNln_vRX4YADitTYiJplwFIdsta1ZDp6TOGMCA,27562
440
440
  pymodaq/utils/tcp_ip/tcp_server_client.py,sha256=xIMTNgVW_rKK0yTi4FDNFLf85-Akb27Jz2LdrvOrP68,30660
441
- pymodaq-4.3.5.dist-info/METADATA,sha256=RXJPRnt6t5mgH-ipkC__L_ESRPaV2rT-SrtENNTWv7w,7657
442
- pymodaq-4.3.5.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
443
- pymodaq-4.3.5.dist-info/entry_points.txt,sha256=RAzdYNjvUT28I2eiCKki_g2NzXq0woWxhev6lwzwRv8,348
444
- pymodaq-4.3.5.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
445
- pymodaq-4.3.5.dist-info/RECORD,,
441
+ pymodaq-4.3.6.dist-info/METADATA,sha256=Que8dxytqKUDEfyJnBVsvfu_0CbQOtOUM2Va17J7JyU,7657
442
+ pymodaq-4.3.6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
443
+ pymodaq-4.3.6.dist-info/entry_points.txt,sha256=RAzdYNjvUT28I2eiCKki_g2NzXq0woWxhev6lwzwRv8,348
444
+ pymodaq-4.3.6.dist-info/licenses/LICENSE,sha256=VKOejxexXAe3XwfhAhcFGqeXQ12irxVHdeAojZwFEI8,1108
445
+ pymodaq-4.3.6.dist-info/RECORD,,