pymodaq_utils 0.0.2__tar.gz → 0.0.4__tar.gz

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.
Files changed (24) hide show
  1. pymodaq_utils-0.0.4/PKG-INFO +129 -0
  2. pymodaq_utils-0.0.4/README.rst +73 -0
  3. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/pyproject.toml +2 -2
  4. pymodaq_utils-0.0.4/src/pymodaq_utils/resources/hatch_build_plugins.py +50 -0
  5. pymodaq_utils-0.0.2/PKG-INFO +0 -152
  6. pymodaq_utils-0.0.2/README.rst +0 -96
  7. pymodaq_utils-0.0.2/src/pymodaq_utils/resources/hatch_build_plugins.py +0 -41
  8. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/.gitignore +0 -0
  9. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/LICENSE +0 -0
  10. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/__init__.py +0 -0
  11. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/abstract.py +0 -0
  12. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/array_manipulation.py +0 -0
  13. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/config.py +0 -0
  14. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/enums.py +0 -0
  15. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/factory.py +0 -0
  16. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/icon.ico +0 -0
  17. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/logger.py +0 -0
  18. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/math_utils.py +0 -0
  19. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/resources/__init__.py +0 -0
  20. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/resources/config_template.toml +0 -0
  21. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/splash.png +0 -0
  22. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/units.py +0 -0
  23. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/utils.py +0 -0
  24. {pymodaq_utils-0.0.2 → pymodaq_utils-0.0.4}/src/pymodaq_utils/warnings.py +0 -0
@@ -0,0 +1,129 @@
1
+ Metadata-Version: 2.3
2
+ Name: pymodaq_utils
3
+ Version: 0.0.4
4
+ Summary: Modular Data Acquisition with Python
5
+ Project-URL: Homepage, http://pymodaq.cnrs.fr
6
+ Project-URL: Source, https://github.com/PyMoDAQ/pymodaq_utils
7
+ Project-URL: Tracker, https://github.com/PyMoDAQ/pymodaq_utils/issues
8
+ Author-email: Sébastien Weber <sebastien.weber@cemes.fr>
9
+ License: The MIT License (MIT)
10
+
11
+ Copyright (c) 2021 Sebastien Weber <sebastien.weber@cemes.fr>
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in
21
+ all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
+ THE SOFTWARE.
30
+ License-File: LICENSE
31
+ Classifier: Development Status :: 5 - Production/Stable
32
+ Classifier: Environment :: Other Environment
33
+ Classifier: Intended Audience :: Science/Research
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Natural Language :: English
36
+ Classifier: Operating System :: OS Independent
37
+ Classifier: Programming Language :: Python :: 3.7
38
+ Classifier: Programming Language :: Python :: 3.8
39
+ Classifier: Programming Language :: Python :: 3.9
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
43
+ Classifier: Topic :: Scientific/Engineering :: Visualization
44
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
45
+ Classifier: Topic :: Software Development :: User Interfaces
46
+ Requires-Python: >=3.7
47
+ Requires-Dist: multipledispatch
48
+ Requires-Dist: numpy<2.0.0
49
+ Requires-Dist: packaging
50
+ Requires-Dist: pint
51
+ Requires-Dist: python-dateutil
52
+ Requires-Dist: scipy
53
+ Requires-Dist: setuptools>=60
54
+ Requires-Dist: toml
55
+ Description-Content-Type: text/x-rst
56
+
57
+ PyMoDAQ Utils
58
+ #############
59
+
60
+ .. image:: https://img.shields.io/pypi/v/pymodaq_utils.svg
61
+ :target: https://pypi.org/project/pymodaq_utils/
62
+ :alt: Latest Version
63
+
64
+ .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
65
+ :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
66
+ :alt: Documentation Status
67
+
68
+ .. image:: https://codecov.io/gh/PyMoDAQ/pymodaq_utils/branch/0.0.x/graph/badge.svg?token=IQNJRCQDM2
69
+ :target: https://codecov.io/gh/PyMoDAQ/pymodaq_utils
70
+
71
+ ====== ======= ======
72
+ Python OS Passed
73
+ ====== ======= ======
74
+ 3.8 Linux |38|
75
+ 3.9 Linux |39|
76
+ 3.10 Linux |310|
77
+ 3.11 Linux |311|
78
+ 3.12 Linux |312|
79
+ 3.11 Windows |311win|
80
+ ====== ======= ======
81
+
82
+
83
+ .. |38| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp38.yml/badge.svg?branch=0.0.x_dev
84
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp385.yml
85
+
86
+ .. |39| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp39.yml/badge.svg?branch=0.0.x_dev
87
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp39.yml
88
+
89
+ .. |310| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp310.yml/badge.svg?branch=0.0.x_dev
90
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp310.yml
91
+
92
+ .. |311| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311.yml/badge.svg?branch=0.0.x_dev
93
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311.yml
94
+
95
+ .. |312| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp312.yml/badge.svg?branch=0.0.x_dev
96
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp312.yml
97
+
98
+ .. |311win| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311_win.yml/badge.svg?branch=0.0.x_dev
99
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311_win.yml
100
+
101
+
102
+
103
+
104
+ .. figure:: http://pymodaq.cnrs.fr/en/latest/_static/splash.png
105
+ :alt: shortcut
106
+
107
+
108
+ PyMoDAQ__, Modular Data Acquisition with Python, is a set of **python** modules used to interface any kind of
109
+ experiments. It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition
110
+ of interest.
111
+
112
+ __ https://pymodaq.readthedocs.io/en/stable/?badge=latest
113
+
114
+ This present repository `pymodaq_utils` is a set of utilities (constants, methods and classes) that are used in the
115
+ various subpackages of PyMoDAQ (PyMoDAQ itself, but also plugins and data management and user interfaces modules)
116
+
117
+ PyMoDAQ Diagram:
118
+
119
+ .. figure:: http://pymodaq.cnrs.fr/en/latest/_images/pymodaq_diagram.png
120
+ :alt: overview
121
+
122
+ PyMoDAQ's Dashboard and its extensions: DAQ_Scan for automated acquisitions, DAQ_Logger for data logging and many other.
123
+
124
+
125
+ Published under the MIT FREE SOFTWARE LICENSE
126
+
127
+ GitHub repo: https://github.com/PyMoDAQ
128
+
129
+ Documentation: http://pymodaq.cnrs.fr/
@@ -0,0 +1,73 @@
1
+ PyMoDAQ Utils
2
+ #############
3
+
4
+ .. image:: https://img.shields.io/pypi/v/pymodaq_utils.svg
5
+ :target: https://pypi.org/project/pymodaq_utils/
6
+ :alt: Latest Version
7
+
8
+ .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
9
+ :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
10
+ :alt: Documentation Status
11
+
12
+ .. image:: https://codecov.io/gh/PyMoDAQ/pymodaq_utils/branch/0.0.x/graph/badge.svg?token=IQNJRCQDM2
13
+ :target: https://codecov.io/gh/PyMoDAQ/pymodaq_utils
14
+
15
+ ====== ======= ======
16
+ Python OS Passed
17
+ ====== ======= ======
18
+ 3.8 Linux |38|
19
+ 3.9 Linux |39|
20
+ 3.10 Linux |310|
21
+ 3.11 Linux |311|
22
+ 3.12 Linux |312|
23
+ 3.11 Windows |311win|
24
+ ====== ======= ======
25
+
26
+
27
+ .. |38| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp38.yml/badge.svg?branch=0.0.x_dev
28
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp385.yml
29
+
30
+ .. |39| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp39.yml/badge.svg?branch=0.0.x_dev
31
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp39.yml
32
+
33
+ .. |310| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp310.yml/badge.svg?branch=0.0.x_dev
34
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp310.yml
35
+
36
+ .. |311| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311.yml/badge.svg?branch=0.0.x_dev
37
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311.yml
38
+
39
+ .. |312| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp312.yml/badge.svg?branch=0.0.x_dev
40
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp312.yml
41
+
42
+ .. |311win| image:: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311_win.yml/badge.svg?branch=0.0.x_dev
43
+ :target: https://github.com/PyMoDAQ/pymodaq_utils/actions/workflows/Testp311_win.yml
44
+
45
+
46
+
47
+
48
+ .. figure:: http://pymodaq.cnrs.fr/en/latest/_static/splash.png
49
+ :alt: shortcut
50
+
51
+
52
+ PyMoDAQ__, Modular Data Acquisition with Python, is a set of **python** modules used to interface any kind of
53
+ experiments. It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition
54
+ of interest.
55
+
56
+ __ https://pymodaq.readthedocs.io/en/stable/?badge=latest
57
+
58
+ This present repository `pymodaq_utils` is a set of utilities (constants, methods and classes) that are used in the
59
+ various subpackages of PyMoDAQ (PyMoDAQ itself, but also plugins and data management and user interfaces modules)
60
+
61
+ PyMoDAQ Diagram:
62
+
63
+ .. figure:: http://pymodaq.cnrs.fr/en/latest/_images/pymodaq_diagram.png
64
+ :alt: overview
65
+
66
+ PyMoDAQ's Dashboard and its extensions: DAQ_Scan for automated acquisitions, DAQ_Logger for data logging and many other.
67
+
68
+
69
+ Published under the MIT FREE SOFTWARE LICENSE
70
+
71
+ GitHub repo: https://github.com/PyMoDAQ
72
+
73
+ Documentation: http://pymodaq.cnrs.fr/
@@ -46,8 +46,8 @@ dependencies = [
46
46
 
47
47
  [project.urls]
48
48
  Homepage = "http://pymodaq.cnrs.fr"
49
- Source = "https://github.com/PyMoDAQ/PyMoDAQ"
50
- Tracker = "https://github.com/PyMoDAQ/PyMoDAQ/issues"
49
+ Source = "https://github.com/PyMoDAQ/pymodaq_utils"
50
+ Tracker = "https://github.com/PyMoDAQ/pymodaq_utils/issues"
51
51
 
52
52
  [tool.hatch.version]
53
53
  source = "vcs"
@@ -0,0 +1,50 @@
1
+ from pathlib import Path
2
+ import toml
3
+
4
+ from pymodaq_utils.logger import set_logger, get_module_name
5
+
6
+ logger = set_logger(get_module_name(__file__))
7
+
8
+
9
+ def update_metadata_from_toml(metadata: dict, here: Path) -> None:
10
+
11
+ logger.debug(f'setting project metadata from: {here}')
12
+ src_file = here.joinpath('plugin_info.toml')
13
+ src_dict = toml.load(src_file)
14
+
15
+ SHORT_PLUGIN_NAME: str = src_dict['plugin-info']['SHORT_PLUGIN_NAME']
16
+ PLUGIN_NAME = f"pymodaq_plugins_{SHORT_PLUGIN_NAME}"
17
+
18
+ metadata['authors'] = [{'name': src_dict['plugin-info']['author'],
19
+ 'email': src_dict['plugin-info']['author-email']}]
20
+ metadata['name'] = PLUGIN_NAME
21
+ metadata['dependencies'] = src_dict['plugin-install']['packages-required']
22
+ metadata['description'] = src_dict['plugin-info']['description']
23
+ metadata['urls'] = {}
24
+ metadata['urls']['Homepage'] = src_dict['plugin-info']['package-url']
25
+ metadata['urls']['Documentation '] = src_dict['plugin-info']['package-url']
26
+ metadata['urls']['Repository '] = src_dict['plugin-info']['package-url']
27
+
28
+ entrypoints = {}
29
+
30
+ if 'features' in src_dict:
31
+ if src_dict['features'].get('instruments', False):
32
+ entrypoints['pymodaq.instruments'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
33
+ if src_dict['features'].get('extensions', False):
34
+ entrypoints['pymodaq.extensions'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
35
+ if src_dict['features'].get('pid_models', False):
36
+ entrypoints['pymodaq.pid_models'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
37
+ if src_dict['features'].get('models', False):
38
+ entrypoints['pymodaq.models'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
39
+ if src_dict['features'].get('h5exporters', False):
40
+ entrypoints['pymodaq.h5exporters'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
41
+ if src_dict['features'].get('scanners', False):
42
+ entrypoints['pymodaq.scanners'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
43
+ else:
44
+ entrypoints['pymodaq.instruments'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
45
+
46
+ entrypoints['pymodaq.plugins'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
47
+ # generic plugin, usefull for the plugin manager
48
+ metadata['entry-points'] = entrypoints
49
+
50
+ logger.debug(f'created entry-points: {entrypoints}')
@@ -1,152 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: pymodaq_utils
3
- Version: 0.0.2
4
- Summary: Modular Data Acquisition with Python
5
- Project-URL: Homepage, http://pymodaq.cnrs.fr
6
- Project-URL: Source, https://github.com/PyMoDAQ/PyMoDAQ
7
- Project-URL: Tracker, https://github.com/PyMoDAQ/PyMoDAQ/issues
8
- Author-email: Sébastien Weber <sebastien.weber@cemes.fr>
9
- License: The MIT License (MIT)
10
-
11
- Copyright (c) 2021 Sebastien Weber <sebastien.weber@cemes.fr>
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining a copy
14
- of this software and associated documentation files (the "Software"), to deal
15
- in the Software without restriction, including without limitation the rights
16
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- copies of the Software, and to permit persons to whom the Software is
18
- furnished to do so, subject to the following conditions:
19
-
20
- The above copyright notice and this permission notice shall be included in
21
- all copies or substantial portions of the Software.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
- THE SOFTWARE.
30
- License-File: LICENSE
31
- Classifier: Development Status :: 5 - Production/Stable
32
- Classifier: Environment :: Other Environment
33
- Classifier: Intended Audience :: Science/Research
34
- Classifier: License :: OSI Approved :: MIT License
35
- Classifier: Natural Language :: English
36
- Classifier: Operating System :: OS Independent
37
- Classifier: Programming Language :: Python :: 3.7
38
- Classifier: Programming Language :: Python :: 3.8
39
- Classifier: Programming Language :: Python :: 3.9
40
- Classifier: Programming Language :: Python :: 3.10
41
- Classifier: Programming Language :: Python :: 3.11
42
- Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
43
- Classifier: Topic :: Scientific/Engineering :: Visualization
44
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
45
- Classifier: Topic :: Software Development :: User Interfaces
46
- Requires-Python: >=3.7
47
- Requires-Dist: multipledispatch
48
- Requires-Dist: numpy<2.0.0
49
- Requires-Dist: packaging
50
- Requires-Dist: pint
51
- Requires-Dist: python-dateutil
52
- Requires-Dist: scipy
53
- Requires-Dist: setuptools>=60
54
- Requires-Dist: toml
55
- Description-Content-Type: text/x-rst
56
-
57
- PyMoDAQ
58
- #######
59
-
60
- .. image:: https://img.shields.io/pypi/v/pymodaq.svg
61
- :target: https://pypi.org/project/pymodaq/
62
- :alt: Latest Version
63
-
64
- .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
65
- :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
66
- :alt: Documentation Status
67
-
68
- .. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/pymodaq-dev/graph/badge.svg?token=IQNJRCQDM2
69
- :target: https://codecov.io/gh/PyMoDAQ/PyMoDAQ
70
-
71
- ====== ========== ======= ======
72
- Python Qt Backend OS Passed
73
- ====== ========== ======= ======
74
- 3.8 Qt5 Linux |38Qt5|
75
- 3.9 Qt5 Linux |39Qt5|
76
- 3.10 Qt5 Linux |310Qt5|
77
- 3.11 Qt5 Linux |311Qt5|
78
- 3.8 Qt5 Windows |38Qt5win|
79
- 3.8 PySide2 Linux |38pyside|
80
- 3.9 Qt6 Linux |39Qt6|
81
- ====== ========== ======= ======
82
-
83
-
84
- .. |38Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5.yml/badge.svg?branch=pymodaq-dev
85
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5.yml
86
-
87
- .. |39Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt5.yml/badge.svg?branch=pymodaq-dev
88
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt5.yml
89
-
90
- .. |310Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp310pyqt5.yml/badge.svg?branch=pymodaq-dev
91
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp310pyqt5.yml
92
-
93
- .. |311Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp311pyqt5.yml/badge.svg?branch=pymodaq-dev
94
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp311pyqt5.yml
95
-
96
- .. |38Qt5win| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5_win.yml/badge.svg?branch=pymodaq-dev
97
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5_win.yml
98
-
99
- .. |38pyside| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyside2.yml/badge.svg?branch=pymodaq-dev
100
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyside2.yml
101
-
102
- .. |39Qt6| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt6.yml/badge.svg?branch=pymodaq-dev
103
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt6.yml
104
-
105
-
106
-
107
- .. figure:: http://pymodaq.cnrs.fr/en/latest/_static/splash.png
108
- :alt: shortcut
109
-
110
-
111
- PyMoDAQ, Modular Data Acquisition with Python, is a set of **python** modules used to interface any kind of experiments.
112
- It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition of interest.
113
-
114
- It has two purposes:
115
-
116
- * First, to provide a complete interface to perform automated measurements or logging data without having to write a user/interface for each
117
- new experiment, this is under the *Dashboard_module* environment and its extensions.
118
- * Second, to provide various tools (modules) to easily build *custom apps*
119
-
120
- It is organised a shown below:
121
-
122
- .. figure:: http://pymodaq.cnrs.fr/en/latest/_images/pymodaq_diagram.png
123
- :alt: overview
124
-
125
- PyMoDAQ's Dashboard and its extensions: DAQ_Scan for automated acquisitions, DAQ_Logger for data logging and many other.
126
-
127
- The main component is the **Dashboard** : This is a graphical component that will initialize actuators and detectors given
128
- the need of your particular experiment. You configure the dashboard using an interface for quick launch of various
129
- configurations (numbers and types of control modules).
130
-
131
- The detectors and the actuators are represented and manipulated using two control modules:
132
-
133
- * **DAQ_Move_module** : used to control/drive an actuator (stand alone and/or automated).
134
- Any number of these modules can be instantiated in the Dashboard
135
- * **DAQ_Viewer_module** : used to control/drive a detector (stand alone and/or automated).
136
-
137
- Any number of these modules can be instantiated in the Dashboard.
138
-
139
- The Dashboard allows you to start dedicated extensions that will make use of the control modules:
140
-
141
- * **DAQ_Logger_module** : This module lets you log data from one or many detectors defined in the dashboard. You can log data
142
- in a binary hierarchical hdf5 file or towards a sql database
143
- * **DAQ_Scan_module** : This module lets you configure automated data acquisition from one or many detectors defined
144
- in the dashboard as a function or one or more actuators defined also in the dashboard.
145
-
146
- and many others to simplify any application development.
147
-
148
- Published under the MIT FREE SOFTWARE LICENSE
149
-
150
- GitHub repo: https://github.com/PyMoDAQ
151
-
152
- Documentation: http://pymodaq.cnrs.fr/
@@ -1,96 +0,0 @@
1
- PyMoDAQ
2
- #######
3
-
4
- .. image:: https://img.shields.io/pypi/v/pymodaq.svg
5
- :target: https://pypi.org/project/pymodaq/
6
- :alt: Latest Version
7
-
8
- .. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
9
- :target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
10
- :alt: Documentation Status
11
-
12
- .. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/pymodaq-dev/graph/badge.svg?token=IQNJRCQDM2
13
- :target: https://codecov.io/gh/PyMoDAQ/PyMoDAQ
14
-
15
- ====== ========== ======= ======
16
- Python Qt Backend OS Passed
17
- ====== ========== ======= ======
18
- 3.8 Qt5 Linux |38Qt5|
19
- 3.9 Qt5 Linux |39Qt5|
20
- 3.10 Qt5 Linux |310Qt5|
21
- 3.11 Qt5 Linux |311Qt5|
22
- 3.8 Qt5 Windows |38Qt5win|
23
- 3.8 PySide2 Linux |38pyside|
24
- 3.9 Qt6 Linux |39Qt6|
25
- ====== ========== ======= ======
26
-
27
-
28
- .. |38Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5.yml/badge.svg?branch=pymodaq-dev
29
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5.yml
30
-
31
- .. |39Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt5.yml/badge.svg?branch=pymodaq-dev
32
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt5.yml
33
-
34
- .. |310Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp310pyqt5.yml/badge.svg?branch=pymodaq-dev
35
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp310pyqt5.yml
36
-
37
- .. |311Qt5| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp311pyqt5.yml/badge.svg?branch=pymodaq-dev
38
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp311pyqt5.yml
39
-
40
- .. |38Qt5win| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5_win.yml/badge.svg?branch=pymodaq-dev
41
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyqt5_win.yml
42
-
43
- .. |38pyside| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyside2.yml/badge.svg?branch=pymodaq-dev
44
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp38pyside2.yml
45
-
46
- .. |39Qt6| image:: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt6.yml/badge.svg?branch=pymodaq-dev
47
- :target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/Testp39pyqt6.yml
48
-
49
-
50
-
51
- .. figure:: http://pymodaq.cnrs.fr/en/latest/_static/splash.png
52
- :alt: shortcut
53
-
54
-
55
- PyMoDAQ, Modular Data Acquisition with Python, is a set of **python** modules used to interface any kind of experiments.
56
- It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition of interest.
57
-
58
- It has two purposes:
59
-
60
- * First, to provide a complete interface to perform automated measurements or logging data without having to write a user/interface for each
61
- new experiment, this is under the *Dashboard_module* environment and its extensions.
62
- * Second, to provide various tools (modules) to easily build *custom apps*
63
-
64
- It is organised a shown below:
65
-
66
- .. figure:: http://pymodaq.cnrs.fr/en/latest/_images/pymodaq_diagram.png
67
- :alt: overview
68
-
69
- PyMoDAQ's Dashboard and its extensions: DAQ_Scan for automated acquisitions, DAQ_Logger for data logging and many other.
70
-
71
- The main component is the **Dashboard** : This is a graphical component that will initialize actuators and detectors given
72
- the need of your particular experiment. You configure the dashboard using an interface for quick launch of various
73
- configurations (numbers and types of control modules).
74
-
75
- The detectors and the actuators are represented and manipulated using two control modules:
76
-
77
- * **DAQ_Move_module** : used to control/drive an actuator (stand alone and/or automated).
78
- Any number of these modules can be instantiated in the Dashboard
79
- * **DAQ_Viewer_module** : used to control/drive a detector (stand alone and/or automated).
80
-
81
- Any number of these modules can be instantiated in the Dashboard.
82
-
83
- The Dashboard allows you to start dedicated extensions that will make use of the control modules:
84
-
85
- * **DAQ_Logger_module** : This module lets you log data from one or many detectors defined in the dashboard. You can log data
86
- in a binary hierarchical hdf5 file or towards a sql database
87
- * **DAQ_Scan_module** : This module lets you configure automated data acquisition from one or many detectors defined
88
- in the dashboard as a function or one or more actuators defined also in the dashboard.
89
-
90
- and many others to simplify any application development.
91
-
92
- Published under the MIT FREE SOFTWARE LICENSE
93
-
94
- GitHub repo: https://github.com/PyMoDAQ
95
-
96
- Documentation: http://pymodaq.cnrs.fr/
@@ -1,41 +0,0 @@
1
- from pathlib import Path
2
- from hatchling.metadata.plugin.interface import MetadataHookInterface
3
- import toml
4
-
5
-
6
- class PluginInfoTomlHook(MetadataHookInterface):
7
- def update_custom(self, metadata: dict, here: Path) -> None:
8
- src_file = here.joinpath('plugin_info.toml')
9
- src_dict = toml.load(src_file)
10
-
11
- SHORT_PLUGIN_NAME: str = src_dict['plugin-info']['SHORT_PLUGIN_NAME']
12
- PLUGIN_NAME = f"pymodaq_plugins_{SHORT_PLUGIN_NAME}"
13
-
14
- metadata['authors'] = [{'name': src_dict['plugin-info']['author'],
15
- 'email': src_dict['plugin-info']['author-email']}]
16
- metadata['name'] = PLUGIN_NAME
17
- metadata['dependencies'] = src_dict['plugin-install']['packages-required']
18
- metadata['description'] = src_dict['plugin-info']['description']
19
- metadata['urls'] = {}
20
- metadata['urls']['Homepage'] = src_dict['plugin-info']['package-url']
21
- metadata['urls']['Documentation '] = src_dict['plugin-info']['package-url']
22
- metadata['urls']['Repository '] = src_dict['plugin-info']['package-url']
23
-
24
- entrypoints = {}
25
- if 'features' in src_dict:
26
- if src_dict['features'].get('instruments', False):
27
- entrypoints['pymodaq.instruments'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
28
- if src_dict['features'].get('extensions', False):
29
- entrypoints['pymodaq.extensions'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
30
- if src_dict['features'].get('pid_models', False):
31
- entrypoints['pymodaq.pid_models'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
32
- if src_dict['features'].get('h5exporters', False):
33
- entrypoints['pymodaq.h5exporters'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
34
- if src_dict['features'].get('scanners', False):
35
- entrypoints['pymodaq.scanners'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
36
- else:
37
- entrypoints['pymodaq.instruments'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
38
-
39
- entrypoints['pymodaq.plugins'] = {SHORT_PLUGIN_NAME: PLUGIN_NAME}
40
- # generic plugin, usefull for the plugin manager
41
- metadata['entry-points'] = entrypoints
File without changes
File without changes