pymodaq_data 0.0.1__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.
- pymodaq_data-0.0.1/.gitignore +129 -0
- pymodaq_data-0.0.1/LICENSE +21 -0
- pymodaq_data-0.0.1/PKG-INFO +160 -0
- pymodaq_data-0.0.1/README.rst +103 -0
- pymodaq_data-0.0.1/pyproject.toml +58 -0
- pymodaq_data-0.0.1/src/pymodaq_data/__init__.py +53 -0
- pymodaq_data-0.0.1/src/pymodaq_data/data.py +2901 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/__init__.py +6 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/backends.py +1031 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/browsing.py +101 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/data_saving.py +1107 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/exporter.py +119 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/exporters/__init__.py +0 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/exporters/base.py +111 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/exporters/flimj.py +63 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/exporters/hyperspy.py +143 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/saving.py +411 -0
- pymodaq_data-0.0.1/src/pymodaq_data/h5modules/utils.py +115 -0
- pymodaq_data-0.0.1/src/pymodaq_data/icon.ico +0 -0
- pymodaq_data-0.0.1/src/pymodaq_data/plotting/__init__.py +0 -0
- pymodaq_data-0.0.1/src/pymodaq_data/plotting/plotter/plotter.py +91 -0
- pymodaq_data-0.0.1/src/pymodaq_data/plotting/plotter/plotters/__init__.py +0 -0
- pymodaq_data-0.0.1/src/pymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py +133 -0
- pymodaq_data-0.0.1/src/pymodaq_data/post_treatment/__init__.py +6 -0
- pymodaq_data-0.0.1/src/pymodaq_data/post_treatment/process_to_scalar.py +234 -0
- pymodaq_data-0.0.1/src/pymodaq_data/slicing.py +48 -0
- pymodaq_data-0.0.1/src/pymodaq_data/splash.png +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Compiled python modules.
|
|
2
|
+
*.pyc
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
|
|
11
|
+
# C extensions
|
|
12
|
+
*.so
|
|
13
|
+
.idea/*
|
|
14
|
+
|
|
15
|
+
# Distribution / packaging
|
|
16
|
+
.Python
|
|
17
|
+
documentation/_*
|
|
18
|
+
build/
|
|
19
|
+
develop-eggs/
|
|
20
|
+
dist/
|
|
21
|
+
downloads/
|
|
22
|
+
eggs/
|
|
23
|
+
.eggs/
|
|
24
|
+
lib/
|
|
25
|
+
lib64/
|
|
26
|
+
parts/
|
|
27
|
+
sdist/
|
|
28
|
+
var/
|
|
29
|
+
wheels/
|
|
30
|
+
*.egg-info/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg
|
|
33
|
+
MANIFEST
|
|
34
|
+
|
|
35
|
+
# PyInstaller
|
|
36
|
+
# Usually these files are written by a python script from a template
|
|
37
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
38
|
+
*.manifest
|
|
39
|
+
*.spec
|
|
40
|
+
|
|
41
|
+
# Installer logs
|
|
42
|
+
pip-log.txt
|
|
43
|
+
pip-delete-this-directory.txt
|
|
44
|
+
|
|
45
|
+
# Unit test / coverage reports
|
|
46
|
+
htmlcov/
|
|
47
|
+
.tox/
|
|
48
|
+
.coverage
|
|
49
|
+
.coverage.*
|
|
50
|
+
.cache
|
|
51
|
+
nosetests.xml
|
|
52
|
+
coverage.xml
|
|
53
|
+
*.cover
|
|
54
|
+
.hypothesis/
|
|
55
|
+
.pytest_cache/
|
|
56
|
+
|
|
57
|
+
*.idea
|
|
58
|
+
|
|
59
|
+
# Translations
|
|
60
|
+
*.mo
|
|
61
|
+
*.pot
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Django stuff:
|
|
65
|
+
*.log
|
|
66
|
+
local_settings.py
|
|
67
|
+
db.sqlite3
|
|
68
|
+
|
|
69
|
+
# Flask stuff:
|
|
70
|
+
instance/
|
|
71
|
+
.webassets-cache
|
|
72
|
+
|
|
73
|
+
# Scrapy stuff:
|
|
74
|
+
.scrapy
|
|
75
|
+
|
|
76
|
+
# Sphinx documentation
|
|
77
|
+
docs/_build/
|
|
78
|
+
|
|
79
|
+
# PyBuilder
|
|
80
|
+
target/
|
|
81
|
+
|
|
82
|
+
# Jupyter Notebook
|
|
83
|
+
.ipynb_checkpoints
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
.python-version
|
|
87
|
+
|
|
88
|
+
# celery beat schedule file
|
|
89
|
+
celerybeat-schedule
|
|
90
|
+
|
|
91
|
+
# SageMath parsed files
|
|
92
|
+
*.sage.py
|
|
93
|
+
|
|
94
|
+
# Environments
|
|
95
|
+
.env
|
|
96
|
+
.venv
|
|
97
|
+
env/
|
|
98
|
+
venv/
|
|
99
|
+
ENV/
|
|
100
|
+
env.bak/
|
|
101
|
+
venv.bak/
|
|
102
|
+
|
|
103
|
+
# Spyder project settings
|
|
104
|
+
.spyderproject
|
|
105
|
+
.spyproject
|
|
106
|
+
|
|
107
|
+
# VS code project settings
|
|
108
|
+
.vscode/*
|
|
109
|
+
|
|
110
|
+
# Rope project settings
|
|
111
|
+
.ropeproject
|
|
112
|
+
|
|
113
|
+
# mkdocs documentation
|
|
114
|
+
/site
|
|
115
|
+
|
|
116
|
+
# mypy
|
|
117
|
+
.mypy_cache/
|
|
118
|
+
.idea/workspace.xml
|
|
119
|
+
|
|
120
|
+
*.iml
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
.tox
|
|
124
|
+
*.h5
|
|
125
|
+
!data.h5
|
|
126
|
+
|
|
127
|
+
*yacctab.py
|
|
128
|
+
*lextab.py
|
|
129
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Sebastien Weber <sebastien.weber@cemes.fr>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pymodaq_data
|
|
3
|
+
Version: 0.0.1
|
|
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.8
|
|
47
|
+
Requires-Dist: multipledispatch
|
|
48
|
+
Requires-Dist: numpy<2.0.0
|
|
49
|
+
Requires-Dist: packaging
|
|
50
|
+
Requires-Dist: pint
|
|
51
|
+
Requires-Dist: pymodaq-utils
|
|
52
|
+
Requires-Dist: python-dateutil
|
|
53
|
+
Requires-Dist: scipy
|
|
54
|
+
Requires-Dist: tables<3.9
|
|
55
|
+
Requires-Dist: toml
|
|
56
|
+
Description-Content-Type: text/x-rst
|
|
57
|
+
|
|
58
|
+
PyMoDAQ Data
|
|
59
|
+
############
|
|
60
|
+
|
|
61
|
+
.. image:: https://img.shields.io/pypi/v/pymodaq_data.svg
|
|
62
|
+
:target: https://pypi.org/project/pymodaq_data/
|
|
63
|
+
:alt: Latest Version
|
|
64
|
+
|
|
65
|
+
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=latest
|
|
66
|
+
:target: https://pymodaq.readthedocs.io/en/stable/?badge=latest
|
|
67
|
+
:alt: Documentation Status
|
|
68
|
+
|
|
69
|
+
.. image:: https://codecov.io/gh/PyMoDAQ/pymodaq_data/branch/0.0.x/graph/badge.svg?token=IQNJRCQDM2
|
|
70
|
+
:target: https://codecov.io/gh/PyMoDAQ/pymodaq_data
|
|
71
|
+
|
|
72
|
+
====== ======= ======
|
|
73
|
+
Python OS Passed
|
|
74
|
+
====== ======= ======
|
|
75
|
+
3.8 Linux |38|
|
|
76
|
+
3.9 Linux |39|
|
|
77
|
+
3.10 Linux |310|
|
|
78
|
+
3.11 Linux |311|
|
|
79
|
+
3.12 Linux |312|
|
|
80
|
+
3.11 Windows |311win|
|
|
81
|
+
====== ======= ======
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
.. |38| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp38.yml/badge.svg?branch=0.0.x_dev
|
|
85
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp385.yml
|
|
86
|
+
|
|
87
|
+
.. |39| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp39.yml/badge.svg?branch=0.0.x_dev
|
|
88
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp39.yml
|
|
89
|
+
|
|
90
|
+
.. |310| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp310.yml/badge.svg?branch=0.0.x_dev
|
|
91
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp310.yml
|
|
92
|
+
|
|
93
|
+
.. |311| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311.yml/badge.svg?branch=0.0.x_dev
|
|
94
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311.yml
|
|
95
|
+
|
|
96
|
+
.. |312| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp312.yml/badge.svg?branch=0.0.x_dev
|
|
97
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp312.yml
|
|
98
|
+
|
|
99
|
+
.. |311win| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311_win.yml/badge.svg?branch=0.0.x_dev
|
|
100
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311_win.yml
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.. figure:: http://pymodaq.cnrs.fr/en/latest/_static/splash.png
|
|
106
|
+
:alt: shortcut
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
PyMoDAQ__, Modular Data Acquisition with Python, is a set of **python** modules used to interface any kind of
|
|
110
|
+
experiments. It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition
|
|
111
|
+
of interest.
|
|
112
|
+
|
|
113
|
+
__ https://pymodaq.readthedocs.io/en/stable/?badge=latest
|
|
114
|
+
|
|
115
|
+
`PyMoDAQ data`__ is a set of utilities (constants, methods and classes) that are used
|
|
116
|
+
for Data Management. It is heavily used with the PyMoDAQ framework but can also be used as a standalone
|
|
117
|
+
package for data management in another context.
|
|
118
|
+
|
|
119
|
+
__ https://pymodaq.cnrs.fr/en/latest/developer_folder/data_management.html
|
|
120
|
+
|
|
121
|
+
What are Data?
|
|
122
|
+
--------------
|
|
123
|
+
|
|
124
|
+
Data are objects with many characteristics able to properly describe real data taken on an experiment
|
|
125
|
+
or calculated from theory:
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
* a type: float, int, ...
|
|
129
|
+
* a dimensionality: Data0D, Data1D, Data2D and higher
|
|
130
|
+
* units (dealt with the pint python package)
|
|
131
|
+
* axes
|
|
132
|
+
* actual data as numpy arrays
|
|
133
|
+
* uncertainty/error bars
|
|
134
|
+
* ...
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
.. figure:: https://pymodaq.cnrs.fr/en/latest/_images/data.png
|
|
138
|
+
:alt: What is data?
|
|
139
|
+
|
|
140
|
+
What is PyMoDAQ's data?.
|
|
141
|
+
|
|
142
|
+
The `PyMoDAQ Data` package
|
|
143
|
+
--------------------------
|
|
144
|
+
|
|
145
|
+
Because of this variety, `PyMoDAQ Data` introduce a set of objects including metadata (for instance the time of
|
|
146
|
+
acquisition) and various methods and properties to manipulate
|
|
147
|
+
them during analysis for instance (getting name, slicing, concatenating...),
|
|
148
|
+
save them and plot them (given you installed one of the available backend: *matplotlib* or *Qt* (
|
|
149
|
+
through the `pymodaq_gui` package)
|
|
150
|
+
|
|
151
|
+
To learn more, check the documentation__.
|
|
152
|
+
|
|
153
|
+
__ https://pymodaq.cnrs.fr/en/latest/developer_folder/data_management.html
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
Published under the MIT FREE SOFTWARE LICENSE
|
|
157
|
+
|
|
158
|
+
GitHub repo: https://github.com/PyMoDAQ
|
|
159
|
+
|
|
160
|
+
Documentation: http://pymodaq.cnrs.fr/
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
PyMoDAQ Data
|
|
2
|
+
############
|
|
3
|
+
|
|
4
|
+
.. image:: https://img.shields.io/pypi/v/pymodaq_data.svg
|
|
5
|
+
:target: https://pypi.org/project/pymodaq_data/
|
|
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_data/branch/0.0.x/graph/badge.svg?token=IQNJRCQDM2
|
|
13
|
+
:target: https://codecov.io/gh/PyMoDAQ/pymodaq_data
|
|
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_data/actions/workflows/Testp38.yml/badge.svg?branch=0.0.x_dev
|
|
28
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp385.yml
|
|
29
|
+
|
|
30
|
+
.. |39| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp39.yml/badge.svg?branch=0.0.x_dev
|
|
31
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp39.yml
|
|
32
|
+
|
|
33
|
+
.. |310| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp310.yml/badge.svg?branch=0.0.x_dev
|
|
34
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp310.yml
|
|
35
|
+
|
|
36
|
+
.. |311| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311.yml/badge.svg?branch=0.0.x_dev
|
|
37
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311.yml
|
|
38
|
+
|
|
39
|
+
.. |312| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp312.yml/badge.svg?branch=0.0.x_dev
|
|
40
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp312.yml
|
|
41
|
+
|
|
42
|
+
.. |311win| image:: https://github.com/PyMoDAQ/pymodaq_data/actions/workflows/Testp311_win.yml/badge.svg?branch=0.0.x_dev
|
|
43
|
+
:target: https://github.com/PyMoDAQ/pymodaq_data/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
|
+
`PyMoDAQ data`__ is a set of utilities (constants, methods and classes) that are used
|
|
59
|
+
for Data Management. It is heavily used with the PyMoDAQ framework but can also be used as a standalone
|
|
60
|
+
package for data management in another context.
|
|
61
|
+
|
|
62
|
+
__ https://pymodaq.cnrs.fr/en/latest/developer_folder/data_management.html
|
|
63
|
+
|
|
64
|
+
What are Data?
|
|
65
|
+
--------------
|
|
66
|
+
|
|
67
|
+
Data are objects with many characteristics able to properly describe real data taken on an experiment
|
|
68
|
+
or calculated from theory:
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
* a type: float, int, ...
|
|
72
|
+
* a dimensionality: Data0D, Data1D, Data2D and higher
|
|
73
|
+
* units (dealt with the pint python package)
|
|
74
|
+
* axes
|
|
75
|
+
* actual data as numpy arrays
|
|
76
|
+
* uncertainty/error bars
|
|
77
|
+
* ...
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
.. figure:: https://pymodaq.cnrs.fr/en/latest/_images/data.png
|
|
81
|
+
:alt: What is data?
|
|
82
|
+
|
|
83
|
+
What is PyMoDAQ's data?.
|
|
84
|
+
|
|
85
|
+
The `PyMoDAQ Data` package
|
|
86
|
+
--------------------------
|
|
87
|
+
|
|
88
|
+
Because of this variety, `PyMoDAQ Data` introduce a set of objects including metadata (for instance the time of
|
|
89
|
+
acquisition) and various methods and properties to manipulate
|
|
90
|
+
them during analysis for instance (getting name, slicing, concatenating...),
|
|
91
|
+
save them and plot them (given you installed one of the available backend: *matplotlib* or *Qt* (
|
|
92
|
+
through the `pymodaq_gui` package)
|
|
93
|
+
|
|
94
|
+
To learn more, check the documentation__.
|
|
95
|
+
|
|
96
|
+
__ https://pymodaq.cnrs.fr/en/latest/developer_folder/data_management.html
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
Published under the MIT FREE SOFTWARE LICENSE
|
|
100
|
+
|
|
101
|
+
GitHub repo: https://github.com/PyMoDAQ
|
|
102
|
+
|
|
103
|
+
Documentation: http://pymodaq.cnrs.fr/
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.9.0", "hatch-vcs"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pymodaq_data"
|
|
7
|
+
dynamic = [
|
|
8
|
+
"version",
|
|
9
|
+
]
|
|
10
|
+
description = "Modular Data Acquisition with Python"
|
|
11
|
+
readme = "README.rst"
|
|
12
|
+
license = { file="LICENSE" }
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
authors = [
|
|
15
|
+
{ name = "Sébastien Weber", email = "sebastien.weber@cemes.fr" },
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 5 - Production/Stable",
|
|
19
|
+
"Environment :: Other Environment",
|
|
20
|
+
"Intended Audience :: Science/Research",
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Natural Language :: English",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3.7",
|
|
25
|
+
"Programming Language :: Python :: 3.8",
|
|
26
|
+
"Programming Language :: Python :: 3.9",
|
|
27
|
+
"Programming Language :: Python :: 3.10",
|
|
28
|
+
"Programming Language :: Python :: 3.11",
|
|
29
|
+
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
|
|
30
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
31
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
32
|
+
"Topic :: Software Development :: User Interfaces",
|
|
33
|
+
]
|
|
34
|
+
dependencies = [
|
|
35
|
+
"pymodaq_utils",
|
|
36
|
+
"multipledispatch",
|
|
37
|
+
"numpy < 2.0.0",
|
|
38
|
+
"packaging",
|
|
39
|
+
"pint",
|
|
40
|
+
"python-dateutil",
|
|
41
|
+
"scipy",
|
|
42
|
+
"toml",
|
|
43
|
+
"tables<3.9", # issue with some version of required package blosc2>=2.2.8
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
[project.urls]
|
|
48
|
+
Homepage = "http://pymodaq.cnrs.fr"
|
|
49
|
+
Source = "https://github.com/PyMoDAQ/PyMoDAQ"
|
|
50
|
+
Tracker = "https://github.com/PyMoDAQ/PyMoDAQ/issues"
|
|
51
|
+
|
|
52
|
+
[tool.hatch.version]
|
|
53
|
+
source = "vcs"
|
|
54
|
+
|
|
55
|
+
[tool.hatch.build.targets.sdist]
|
|
56
|
+
include = [
|
|
57
|
+
"/src",
|
|
58
|
+
]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import importlib.util
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
from pint import UnitRegistry
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
from pymodaq_utils.logger import set_logger
|
|
8
|
+
from pymodaq_utils.utils import get_version, PackageNotFoundError
|
|
9
|
+
try:
|
|
10
|
+
__version__ = get_version('pymodaq_data')
|
|
11
|
+
except PackageNotFoundError:
|
|
12
|
+
__version__ = '0.0.0dev'
|
|
13
|
+
try:
|
|
14
|
+
logger = set_logger('pymodaq_data', add_handler=True, base_logger=True)
|
|
15
|
+
except Exception:
|
|
16
|
+
print("Couldn't create the local folder to store logs , presets...")
|
|
17
|
+
|
|
18
|
+
logger.info('************************')
|
|
19
|
+
logger.info('Initializing the pint unit register')
|
|
20
|
+
logger.info('************************')
|
|
21
|
+
ureg = UnitRegistry()
|
|
22
|
+
ureg.default_format = '~'
|
|
23
|
+
Q_ = ureg.Quantity
|
|
24
|
+
Unit = ureg.Unit
|
|
25
|
+
logger.info('')
|
|
26
|
+
logger.info('')
|
|
27
|
+
|
|
28
|
+
from pymodaq_data.h5modules.utils import register_exporters
|
|
29
|
+
logger.info('')
|
|
30
|
+
logger.info('')
|
|
31
|
+
logger.info('************************')
|
|
32
|
+
logger.info(f"Registering exporters...")
|
|
33
|
+
register_exporters()
|
|
34
|
+
logger.info(f"Done")
|
|
35
|
+
logger.info('************************')
|
|
36
|
+
|
|
37
|
+
from pymodaq_data.plotting.plotter.plotter import register_plotter, PlotterFactory
|
|
38
|
+
logger.info('')
|
|
39
|
+
logger.info('')
|
|
40
|
+
logger.info('************************')
|
|
41
|
+
logger.info(f"Registering plotters...")
|
|
42
|
+
register_plotter()
|
|
43
|
+
logger.info(f"Done")
|
|
44
|
+
logger.info('************************')
|
|
45
|
+
|
|
46
|
+
from pymodaq_data.data import (DataRaw, DataFromPlugins, DataWithAxes, DataToExport, Axis,
|
|
47
|
+
DataCalculated, DataDim, DataDistribution, DataSource, DataBase)
|
|
48
|
+
|
|
49
|
+
except Exception as e:
|
|
50
|
+
try:
|
|
51
|
+
logger.exception(str(e))
|
|
52
|
+
except Exception as e:
|
|
53
|
+
print(str(e))
|