pymodaq_data 5.1.9__tar.gz → 5.2.0a3__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-5.1.9 → pymodaq_data-5.2.0a3}/PKG-INFO +17 -14
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/README.rst +11 -11
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/pyproject.toml +4 -2
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/__init__.py +5 -3
- pymodaq_data-5.2.0a3/src/pymodaq_data/config.py +11 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/data.py +365 -50
- pymodaq_data-5.2.0a3/src/pymodaq_data/h5modules/__init__.py +123 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/backends.py +162 -15
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/browsing.py +12 -8
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/data_saving.py +124 -38
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/exporter.py +1 -1
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/exporters/hyperspy.py +2 -2
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/saving.py +109 -20
- pymodaq_data-5.2.0a3/src/pymodaq_data/h5modules/swmr.py +108 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/numpy_func.py +2 -2
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py +5 -4
- pymodaq_data-5.2.0a3/src/pymodaq_data/plotting/utils.py +52 -0
- pymodaq_data-5.2.0a3/src/pymodaq_data/resources/__init__.py +0 -0
- pymodaq_data-5.2.0a3/src/pymodaq_data/resources/config_template.toml +28 -0
- pymodaq_data-5.1.9/src/pymodaq_data/h5modules/__init__.py +0 -6
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/.gitignore +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/LICENSE +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/exporters/__init__.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/exporters/base.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/exporters/flimj.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/h5modules/utils.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/icon.ico +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/plotting/__init__.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/plotting/plotter/plotter.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/plotting/plotter/plotters/__init__.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/post_treatment/__init__.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/post_treatment/process_to_scalar.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/slicing.py +0 -0
- {pymodaq_data-5.1.9 → pymodaq_data-5.2.0a3}/src/pymodaq_data/splash.png +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pymodaq_data
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.2.0a3
|
|
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
|
|
@@ -43,16 +43,19 @@ Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
|
43
43
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
44
44
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
45
45
|
Requires-Python: >=3.8
|
|
46
|
+
Requires-Dist: h5py
|
|
46
47
|
Requires-Dist: pymodaq-utils>=0.0.8
|
|
47
48
|
Requires-Dist: scipy
|
|
48
|
-
Requires-Dist: tables>=3.10
|
|
49
49
|
Provides-Extra: dev
|
|
50
50
|
Requires-Dist: flake8; extra == 'dev'
|
|
51
|
-
Requires-Dist: h5py; extra == 'dev'
|
|
51
|
+
Requires-Dist: h5py>=2.5.0; extra == 'dev'
|
|
52
52
|
Requires-Dist: hatch; extra == 'dev'
|
|
53
53
|
Requires-Dist: pytest; extra == 'dev'
|
|
54
54
|
Requires-Dist: pytest-cov; extra == 'dev'
|
|
55
55
|
Requires-Dist: pytest-xdist; extra == 'dev'
|
|
56
|
+
Requires-Dist: tables>=3.10; extra == 'dev'
|
|
57
|
+
Provides-Extra: xarray
|
|
58
|
+
Requires-Dist: xarray>=2024.10; extra == 'xarray'
|
|
56
59
|
Description-Content-Type: text/x-rst
|
|
57
60
|
|
|
58
61
|
.. ############################################################
|
|
@@ -68,11 +71,11 @@ PyMoDAQ Data
|
|
|
68
71
|
:target: https://pypi.org/project/pymodaq_data/
|
|
69
72
|
:alt: Latest Version
|
|
70
73
|
|
|
71
|
-
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=malik-irain-patch-
|
|
72
|
-
:target: https://pymodaq.readthedocs.io/en/stable/?badge=malik-irain-patch-
|
|
74
|
+
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=malik-irain-patch-2
|
|
75
|
+
:target: https://pymodaq.readthedocs.io/en/stable/?badge=malik-irain-patch-2
|
|
73
76
|
:alt: Documentation Status
|
|
74
77
|
|
|
75
|
-
.. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/malik-irain-patch-
|
|
78
|
+
.. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/malik-irain-patch-2/graph/badge.svg?token=IQNJRCQDM2
|
|
76
79
|
:target: https://codecov.io/gh/PyMoDAQ/PyMoDAQ
|
|
77
80
|
|
|
78
81
|
+-------------+-------------+---------------+
|
|
@@ -91,28 +94,28 @@ PyMoDAQ Data
|
|
|
91
94
|
|
|
92
95
|
|
|
93
96
|
|
|
94
|
-
.. |310-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
97
|
+
.. |310-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.10.svg
|
|
95
98
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
96
99
|
|
|
97
|
-
.. |311-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
100
|
+
.. |311-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.11.svg
|
|
98
101
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
99
102
|
|
|
100
|
-
.. |312-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
103
|
+
.. |312-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.12.svg
|
|
101
104
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
102
105
|
|
|
103
|
-
.. |313-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
106
|
+
.. |313-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.13.svg
|
|
104
107
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
105
108
|
|
|
106
|
-
.. |310-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
109
|
+
.. |310-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.10.svg
|
|
107
110
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
108
111
|
|
|
109
|
-
.. |311-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
112
|
+
.. |311-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.11.svg
|
|
110
113
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
111
114
|
|
|
112
|
-
.. |312-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
115
|
+
.. |312-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.12.svg
|
|
113
116
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
114
117
|
|
|
115
|
-
.. |313-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
118
|
+
.. |313-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.13.svg
|
|
116
119
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
117
120
|
|
|
118
121
|
|
|
@@ -11,11 +11,11 @@ PyMoDAQ Data
|
|
|
11
11
|
:target: https://pypi.org/project/pymodaq_data/
|
|
12
12
|
:alt: Latest Version
|
|
13
13
|
|
|
14
|
-
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=malik-irain-patch-
|
|
15
|
-
:target: https://pymodaq.readthedocs.io/en/stable/?badge=malik-irain-patch-
|
|
14
|
+
.. image:: https://readthedocs.org/projects/pymodaq/badge/?version=malik-irain-patch-2
|
|
15
|
+
:target: https://pymodaq.readthedocs.io/en/stable/?badge=malik-irain-patch-2
|
|
16
16
|
:alt: Documentation Status
|
|
17
17
|
|
|
18
|
-
.. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/malik-irain-patch-
|
|
18
|
+
.. image:: https://codecov.io/gh/PyMoDAQ/PyMoDAQ/branch/malik-irain-patch-2/graph/badge.svg?token=IQNJRCQDM2
|
|
19
19
|
:target: https://codecov.io/gh/PyMoDAQ/PyMoDAQ
|
|
20
20
|
|
|
21
21
|
+-------------+-------------+---------------+
|
|
@@ -34,28 +34,28 @@ PyMoDAQ Data
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
.. |310-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
37
|
+
.. |310-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.10.svg
|
|
38
38
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
39
39
|
|
|
40
|
-
.. |311-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
40
|
+
.. |311-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.11.svg
|
|
41
41
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
42
42
|
|
|
43
|
-
.. |312-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
43
|
+
.. |312-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.12.svg
|
|
44
44
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
45
45
|
|
|
46
|
-
.. |313-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
46
|
+
.. |313-linux| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Linux_3.13.svg
|
|
47
47
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
48
48
|
|
|
49
|
-
.. |310-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
49
|
+
.. |310-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.10.svg
|
|
50
50
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
51
51
|
|
|
52
|
-
.. |311-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
52
|
+
.. |311-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.11.svg
|
|
53
53
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
54
54
|
|
|
55
|
-
.. |312-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
55
|
+
.. |312-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.12.svg
|
|
56
56
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
57
57
|
|
|
58
|
-
.. |313-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-
|
|
58
|
+
.. |313-windows| image:: https://raw.githubusercontent.com/PyMoDAQ/PyMoDAQ/badges/pymodaq_data/malik-irain-patch-2/tests_Windows_3.13.svg
|
|
59
59
|
:target: https://github.com/PyMoDAQ/PyMoDAQ/actions/workflows/tests-data.yml
|
|
60
60
|
|
|
61
61
|
|
|
@@ -33,14 +33,16 @@ classifiers = [
|
|
|
33
33
|
dependencies = [
|
|
34
34
|
"pymodaq_utils>=0.0.8",
|
|
35
35
|
"scipy",
|
|
36
|
-
"
|
|
36
|
+
"h5py",
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[project.optional-dependencies]
|
|
40
|
+
xarray = ["xarray>=2024.10"]
|
|
40
41
|
dev = [
|
|
41
42
|
"hatch",
|
|
42
43
|
"flake8",
|
|
43
|
-
"h5py",
|
|
44
|
+
"h5py>=2.5.0",
|
|
45
|
+
"tables>=3.10",
|
|
44
46
|
"pytest",
|
|
45
47
|
"pytest-cov",
|
|
46
48
|
"pytest-xdist",
|
|
@@ -13,13 +13,14 @@ try:
|
|
|
13
13
|
try:
|
|
14
14
|
logger = set_logger('pymodaq_data', add_handler=True, base_logger=True)
|
|
15
15
|
except Exception:
|
|
16
|
-
print("Couldn't create the local folder to store logs ,
|
|
16
|
+
print("Couldn't create the local folder to store logs , experiments...")
|
|
17
17
|
|
|
18
|
+
import pymodaq_data.config
|
|
18
19
|
logger.info('************************')
|
|
19
20
|
logger.info('Initializing the pint unit register')
|
|
20
21
|
logger.info('************************')
|
|
21
22
|
ureg = UnitRegistry()
|
|
22
|
-
ureg.default_format = '~'
|
|
23
|
+
ureg.formatter.default_format = '~'
|
|
23
24
|
Q_ = ureg.Quantity
|
|
24
25
|
Unit = ureg.Unit
|
|
25
26
|
logger.info('')
|
|
@@ -45,7 +46,8 @@ try:
|
|
|
45
46
|
|
|
46
47
|
|
|
47
48
|
from pymodaq_data.data import (DataRaw, DataWithAxes, DataToExport, Axis,
|
|
48
|
-
DataCalculated, DataDim, DataDistribution, DataSource, DataBase
|
|
49
|
+
DataCalculated, DataDim, DataDistribution, DataSource, DataBase,
|
|
50
|
+
)
|
|
49
51
|
|
|
50
52
|
except Exception as e:
|
|
51
53
|
try:
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from pymodaq_utils.config import (GlobalConfig, BaseConfig)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@GlobalConfig.register()
|
|
7
|
+
class Config(BaseConfig):
|
|
8
|
+
"""Main class to deal with configuration values for this plugin"""
|
|
9
|
+
config_template_path = Path(__file__).parent.joinpath('resources/config_template.toml')
|
|
10
|
+
config_name = f"data"
|
|
11
|
+
|