pymodaq_data 5.0.25__tar.gz → 5.0.26__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.0.25 → pymodaq_data-5.0.26}/PKG-INFO +1 -1
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/_version.py +16 -3
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporter.py +10 -15
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/saving.py +1 -1
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/.gitignore +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/LICENSE +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/README.rst +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/pyproject.toml +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/data.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/backends.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/browsing.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/data_saving.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/base.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/flimj.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/hyperspy.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/utils.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/icon.ico +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/numpy_func.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/plotting/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/plotting/plotter/plotter.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/plotting/plotter/plotters/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/post_treatment/__init__.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/post_treatment/process_to_scalar.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/slicing.py +0 -0
- {pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/splash.png +0 -0
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '5.0.
|
|
21
|
-
__version_tuple__ = version_tuple = (5, 0,
|
|
31
|
+
__version__ = version = '5.0.26'
|
|
32
|
+
__version_tuple__ = version_tuple = (5, 0, 26)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
@@ -18,24 +18,14 @@ from pymodaq_utils.logger import set_logger, get_module_name
|
|
|
18
18
|
logger = set_logger(get_module_name(__file__))
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class H5Exporter(metaclass=ABCMeta):
|
|
22
|
-
"""Base class for an exporter. """
|
|
23
21
|
|
|
24
|
-
# This is to define an abstract class attribute
|
|
25
|
-
@classmethod
|
|
26
|
-
@property
|
|
27
|
-
@abstractmethod
|
|
28
|
-
def FORMAT_DESCRIPTION(cls):
|
|
29
|
-
"""str: file format description as a short text. eg: text file"""
|
|
30
|
-
raise NotImplementedError
|
|
31
22
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@abstractmethod
|
|
35
|
-
def FORMAT_EXTENSION(cls):
|
|
36
|
-
"""str: File format extension. eg: txt"""
|
|
37
|
-
raise NotImplementedError
|
|
23
|
+
class H5Exporter(metaclass=ABCMeta):
|
|
24
|
+
"""Base class for an exporter. """
|
|
38
25
|
|
|
26
|
+
FORMAT_EXTENSION: str = NotImplemented
|
|
27
|
+
FORMAT_DESCRIPTION: str = NotImplemented
|
|
28
|
+
|
|
39
29
|
def __init__(self):
|
|
40
30
|
"""Abstract Exporter Constructor"""
|
|
41
31
|
pass
|
|
@@ -63,6 +53,11 @@ class ExporterFactory:
|
|
|
63
53
|
"""
|
|
64
54
|
|
|
65
55
|
def inner_wrapper(wrapped_class) -> Callable:
|
|
56
|
+
if wrapped_class.FORMAT_EXTENSION is NotImplemented or \
|
|
57
|
+
wrapped_class.FORMAT_DESCRIPTION is NotImplemented:
|
|
58
|
+
raise NotImplementedError(f'{wrapped_class} does not properly provide a valid value for '
|
|
59
|
+
f'`FORMAT_EXTENSION` ({wrapped_class.FORMAT_EXTENSION}) or for '
|
|
60
|
+
f'`FORMAT_DESCRIPTION` ({wrapped_class.FORMAT_DESCRIPTION})')
|
|
66
61
|
extension = wrapped_class.FORMAT_EXTENSION
|
|
67
62
|
format_desc = wrapped_class.FORMAT_DESCRIPTION
|
|
68
63
|
|
|
@@ -227,7 +227,7 @@ class H5SaverLowLevel(H5Backend):
|
|
|
227
227
|
"""
|
|
228
228
|
if array_type is None:
|
|
229
229
|
if array_to_save is None:
|
|
230
|
-
array_type = config('data_saving', 'data_type', '
|
|
230
|
+
array_type = config('data_saving', 'data_type', 'dynamics')[0]
|
|
231
231
|
else:
|
|
232
232
|
array_type = array_to_save.dtype
|
|
233
233
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/h5modules/exporters/hyperspy.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/plotting/plotter/plotters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymodaq_data-5.0.25 → pymodaq_data-5.0.26}/src/pymodaq_data/post_treatment/process_to_scalar.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|