6.4.4. Legacy to current

This page is generated from the deprecation warnings raised by the PyMoDAQ source code (deprecation_msg calls and DeprecationWarning). It lists what is still accepted but should not be used in new code, and what to use instead. Models trained on older versions of PyMoDAQ, and old plugins, still use the names on the left: do not copy them.

Besides these entries, the word preset is obsolete: the Dashboard is used through the experiment manager and the state manager. In the plugins, check_plugin reports most of the names below (see Instrument Plugins).

Do not edit this file by hand, run python docs/legacy_to_current.py after adding a deprecation.

6.4.4.1. pymodaq.control_modules.daq_move

ActuatorWorker.Move_Stoped

Move_Stoped is deprecated, use the move_done_signal instead

ActuatorWorker.actuator_type

actuator_type is deprecated, use plugin_name

ActuatorWorker.check_position

check_position is deprecated, use get_actuator_value

ActuatorWorker.hardware

hardware is deprecated, use plugin

ActuatorWorker.hardware_adress

hardware_adress is deprecated, use controller_address

ActuatorWorker.ini_hardware

Returns from init_stage should now be a string and a boolean, see pymodaq_plugins_template

ActuatorWorker.ini_stage

ini_stage is deprecated, use ini_hardware

ActuatorWorker.motion_stoped

motion_stoped is deprecated, use motion_stopped

6.4.4.2. pymodaq.control_modules.daq_viewer

DAQ_Viewer.viewers_docks

viewers_docks is a deprecated property use viewer_docks instead

DetectorWorker.controller_adress

controller_adress is deprecated, use controller_address

DetectorWorker.detector

detector is deprecated, use plugin

DetectorWorker.detector_name

detector_name is deprecated, use plugin_name

DetectorWorker.ini_detector

ini_detector is deprecated, use ini_hardware

6.4.4.3. pymodaq.control_modules.move_utility_classes

DAQ_Move_base.controller_units

The property controller_units is deprecated please use theaxis_unit property.

DAQ_Move_base.current_position

current_position attribute should not be used, use current_value

DAQ_Move_base.get_actuator_value

check_position method in plugins is deprecated, use get_actuator_value

DAQ_Move_base.get_class_axis_names

using ‘stage_names’ class attribute in plugins is deprecated, please use’_axis_names’ instead

DAQ_Move_base.ini_stage_init

‘ini_stage_init’ is deprecated, use ‘ini_controller_init’ instead.

DAQ_Move_base.move_abs

move_Abs method in plugins is deprecated, use move_abs

DAQ_Move_base.move_home

move_Home method in plugins is deprecated, use move_home

DAQ_Move_base.move_rel

move_Rel method in plugins is deprecated, use move_rel

DAQ_Move_base.target_position

target_position attribute should not be used, use target_value

6.4.4.4. pymodaq.control_modules.plugin_base

_BackCompatGroupParameter.__getitem__

Accessing settings with the legacy name(s) … is deprecated and will be removed in a future release. Use … instead.

6.4.4.5. pymodaq.control_modules.viewer_utility_classes

DAQ_Viewer_base._emit_dte

Data emitted from the instrument plugins should be a DataToExport instanceSee: http://pymodaq.cnrs.fr/en/latest/developer_folder/instrument_plugins.html#emission-of-data

DAQ_Viewer_base._emit_dte_temp

Data emitted from the instrument plugins should be a DataToExport instanceSee: http://pymodaq.cnrs.fr/en/latest/developer_folder/instrument_plugins.html#emission-of-data

DAQ_Viewer_base.ini_detector_init

‘ini_detector_init’ is deprecated, use ‘ini_controller_init’ instead.

6.4.4.6. pymodaq.daq_utils.daq_utils

(on import)

Importing daq_utils stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_utils.utils module

6.4.4.7. pymodaq.extensions.custom_ext

(on import)

Importing CustomExt from pymodaq.extensions.custom_ext is deprecated, use pymodaq.utils.custom_ext instead

6.4.4.8. pymodaq.extensions.h5browser

(on import)

H5Browser should now be loaded from the pymodaq_gui.h5modules.h5browser module

6.4.4.9. pymodaq.extensions.pid.utils

DataToActuatorPID.__init__

DataToActuatorPID object is deprecated use: pymodaq.utils.data:DataToActuators

6.4.4.10. pymodaq.scripting

(on import)

Please do not import Scripting Devices from pymodaq.scripting, but from pymodaq_scripting package directly

6.4.4.11. pymodaq.utils.array_manipulation

(on import)

Importing array_manipulation stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_utils.array_manipulation module

6.4.4.12. pymodaq.utils.data

DataFromPlugins.__init__

‘plot’ should not be used anymore as extra_attribute, please use ‘do_plot’

DataFromPlugins.__init__

‘save’ should not be used anymore as extra_attribute, please use ‘do_save’

6.4.4.13. pymodaq.utils.enums

(on import)

Importing enums stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_utils.enums module

6.4.4.14. pymodaq.utils.gui_utils.utils

(on import)

Importing get_splash_sc stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the same method from the pymodaq_gui.utils.splash module

6.4.4.15. pymodaq.utils.gui_utils.widgets.lcd

(on import)

Importing LCD from pymodaq is deprecated in pymodaq>5.0.0,please use the same method from the pymodaq_gui.utils.widgets.lcd module

6.4.4.16. pymodaq.utils.gui_utils.widgets.window

(on import)

Importing make_window from pymodaq is deprecated in pymodaq>=5.2.0,please use the same method from the pymodaq_gui.utils.widgets.window module

6.4.4.17. pymodaq.utils.logger

(on import)

Importing logger stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_utils package

6.4.4.18. pymodaq.utils.managers.experiment.experiment_manager

ExperimentManager.list_control_modules_from_preset

list_control_modules_from_preset is deprecated, use list_control_modules_from_experiment

ExperimentManager.remove_preset_related_files

remove_preset_related_files is deprecated, use remove_experiment_related_files

6.4.4.19. pymodaq.utils.managers.modules.module_settings_manager

ModulesSettingsManager.get_settings_from_class

‘move_settings’ is deprecated and will be removed in a future version. Use ‘…’ instead. Please resave your experiment.

6.4.4.20. pymodaq.utils.managers.modules.modules_manager

ModulesManager.get_det_data_list

get_det_data_list() is deprecated, use probe_detectors() instead

ModulesManager.test_move_actuators

test_move_actuators() is deprecated, use probe_actuators() instead

6.4.4.21. pymodaq.utils.math_utils

(on import)

Importing math_utils stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_utils.math_utils module

6.4.4.22. pymodaq.utils.messenger

(on import)

importing messagebox from pymodaq directly is deprecated. It should now be imported from pymodaq_gui.messenger

6.4.4.23. pymodaq.utils.parameter

(on import)

Importing Parameter stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_gui package

6.4.4.24. pymodaq.utils.parameter.utils

(on import)

Importing Parameter stuff from pymodaq is deprecated in pymodaq>5.0.0,please use the pymodaq_gui.parameter module

6.4.4.25. pymodaq_data.data

AxesManagerBase.nav_axes

nav_axes parameter should not be used anymore, use nav_indexes

Axis.__getitem__

attributes from an Axis object should not be fetched using __getitem__

DataWithAxes.__init__

nav_axes parameter should not be used anymore, use nav_indexes

NavAxis.__init__

NavAxis should not be used anymore, please use Axis object with correct index.The navigation index should be specified in the Data object

6.4.4.26. pymodaq_gui.managers.action_manager

QAction.click

click for PyMoDAQ’s QAction is deprecated, use *trigger*

QAction.clicked

clicked for PyMoDAQ’s QAction is deprecated, use *trigger*

6.4.4.27. pymodaq_gui.parameter.pymodaq_ptypes.action_led

ActionLedParameter._interpretValue

ActionLedParameter value should be a state name string (‘true’/’false’), not a bool. Bool support will be removed in a future version.

ActionLedWidget._set_value

ActionLedWidget.setValue() received a bool; pass a state name string (‘true’/’false’) instead. Bool support will be removed in a future version.

6.4.4.28. pymodaq_gui.utils.custom_app

CustomApp.setup_docks_and_widgets

You should not define setup_docks anymore, use `setup_docks_and_widgets` instead

CustomApp.setup_menus_and_toolbars

You should not define setup_menu anymore, use `setup_menus_and_toolbars` instead

6.4.4.29. pymodaq_gui.utils.utils

mkQApp

Importing mkQApp from pymodaq_gui.utils.utils is deprecated, please use pymodaq_gui.qt_utils module instead

6.4.4.30. pymodaq_utils.plugin_testing

__getattr__

pymodaq_utils.plugin_testing is deprecated, use pymodaq.utils.plugin_testing instead

6.4.4.31. pymodaq_utils.utils

ThreadCommand.__init__

ThreadCommand signature changed, use attribute in place of attributes

6.4.4.32. pymodaq_utils.warnings

deprecation_msg

…