pymodaq_data 0.0.3__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.
Files changed (29) hide show
  1. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/PKG-INFO +1 -1
  2. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/_version.py +2 -2
  3. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/data.py +12 -3
  4. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/.gitignore +0 -0
  5. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/LICENSE +0 -0
  6. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/README.rst +0 -0
  7. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/pyproject.toml +0 -0
  8. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/__init__.py +0 -0
  9. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/__init__.py +0 -0
  10. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/backends.py +0 -0
  11. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/browsing.py +0 -0
  12. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/data_saving.py +0 -0
  13. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporter.py +0 -0
  14. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/__init__.py +0 -0
  15. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/base.py +0 -0
  16. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/flimj.py +0 -0
  17. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/exporters/hyperspy.py +0 -0
  18. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/saving.py +0 -0
  19. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/h5modules/utils.py +0 -0
  20. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/icon.ico +0 -0
  21. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/numpy_func.py +0 -0
  22. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/__init__.py +0 -0
  23. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotter.py +0 -0
  24. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotters/__init__.py +0 -0
  25. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/plotting/plotter/plotters/matplotlib_plotters.py +0 -0
  26. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/post_treatment/__init__.py +0 -0
  27. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/post_treatment/process_to_scalar.py +0 -0
  28. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/slicing.py +0 -0
  29. {pymodaq_data-0.0.3 → pymodaq_data-5.0.2}/src/pymodaq_data/splash.png +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymodaq_data
3
- Version: 0.0.3
3
+ Version: 5.0.2
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
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.0.3'
16
- __version_tuple__ = version_tuple = (0, 0, 3)
15
+ __version__ = version = '5.0.2'
16
+ __version_tuple__ = version_tuple = (5, 0, 2)
@@ -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 (#self.name == other.name and # who cares if the name is not the same?
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
- return self.data.index(data)
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 have the same
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