pymodaq_data 5.0.1__tar.gz → 5.0.2__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.1 → pymodaq_data-5.0.2}/PKG-INFO +1 -1
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/_version.py +2 -2
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/data.py +12 -3
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/.gitignore +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/LICENSE +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/README.rst +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/pyproject.toml +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/backends.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/browsing.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/data_saving.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporter.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/base.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/flimj.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/hyperspy.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/saving.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/utils.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/icon.ico +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/numpy_func.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotter.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotters/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/post_treatment/__init__.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/post_treatment/process_to_scalar.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/slicing.py +0 -0
- {pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/splash.png +0 -0
|
@@ -765,7 +765,7 @@ class DataBase(DataLowLevel, NDArrayOperatorsMixin):
|
|
|
765
765
|
|
|
766
766
|
def _comparison_common(self, other, operator='__eq__'):
|
|
767
767
|
if isinstance(other, DataBase):
|
|
768
|
-
if not (#
|
|
768
|
+
if not (# no more checking for name equality
|
|
769
769
|
len(self) == len(other) and
|
|
770
770
|
Unit(self.units).is_compatible_with(other.units)):
|
|
771
771
|
return False
|
|
@@ -2759,7 +2759,15 @@ class DataToExport(DataLowLevel):
|
|
|
2759
2759
|
return data
|
|
2760
2760
|
|
|
2761
2761
|
def index(self, data: DataWithAxes):
|
|
2762
|
-
|
|
2762
|
+
""" Here use a comparison to assert data is equal to one element in the list
|
|
2763
|
+
|
|
2764
|
+
But the __eq__ method is not checking the name while it is the main issue for elt finding
|
|
2765
|
+
Hence here I'm doing both checks
|
|
2766
|
+
"""
|
|
2767
|
+
for ind, dwa in enumerate(self.data):
|
|
2768
|
+
if dwa.name == data.name and dwa == data:
|
|
2769
|
+
return ind
|
|
2770
|
+
raise ValueError
|
|
2763
2771
|
|
|
2764
2772
|
def index_from_name_origin(self, name: str, origin: str = '') -> List[DataWithAxes]:
|
|
2765
2773
|
"""Get the index of a given DataWithAxes within the list of data"""
|
|
@@ -2823,7 +2831,8 @@ class DataToExport(DataLowLevel):
|
|
|
2823
2831
|
def append(self, dwa: DataWithAxes):
|
|
2824
2832
|
"""Append/replace DataWithAxes object to the data attribute
|
|
2825
2833
|
|
|
2826
|
-
Make sure only one DataWithAxes object with a given name is in the list except if they don't
|
|
2834
|
+
Make sure only one DataWithAxes object with a given name is in the list except if they don't
|
|
2835
|
+
have the same
|
|
2827
2836
|
origin identifier
|
|
2828
2837
|
"""
|
|
2829
2838
|
dwa = dwa.deepcopy()
|
|
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
|
|
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.1 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymodaq_data-5.0.1 → pymodaq_data-5.0.2}/src/pymodaq_data/post_treatment/process_to_scalar.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|