AOT-biomaps 2.9.366__tar.gz → 2.9.368__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 (53) hide show
  1. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/AcousticTools.py +17 -0
  2. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/StructuredWave.py +2 -2
  3. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/__init__.py +3 -1
  4. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps.egg-info/PKG-INFO +1 -1
  5. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/PKG-INFO +1 -1
  6. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/setup.py +3 -1
  7. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/AcousticEnums.py +0 -0
  8. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/FocusedWave.py +0 -0
  9. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/IrregularWave.py +0 -0
  10. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/PlaneWave.py +0 -0
  11. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/__init__.py +0 -0
  12. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Acoustic/_mainAcoustic.py +0 -0
  13. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Experiment/ExperimentTools.py +0 -0
  14. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Experiment/Focus.py +0 -0
  15. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Experiment/Tomography.py +0 -0
  16. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Experiment/__init__.py +0 -0
  17. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Experiment/_mainExperiment.py +0 -0
  18. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Optic/Absorber.py +0 -0
  19. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Optic/Laser.py +0 -0
  20. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Optic/OpticEnums.py +0 -0
  21. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Optic/__init__.py +0 -0
  22. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Optic/_mainOptic.py +0 -0
  23. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/DEPIERRO.py +0 -0
  24. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/LS.py +0 -0
  25. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/MAPEM.py +0 -0
  26. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/MLEM.py +0 -0
  27. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/PDHG.py +0 -0
  28. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_Optimizers/__init__.py +0 -0
  29. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Huber.py +0 -0
  30. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Quadratic.py +0 -0
  31. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/RelativeDifferences.py +0 -0
  32. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/__init__.py +0 -0
  33. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_CSR.py +0 -0
  34. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_SELL.py +0 -0
  35. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/__init__.py +0 -0
  36. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AOT_biomaps_kernels.cubin +0 -0
  37. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AlgebraicRecon.py +0 -0
  38. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/AnalyticRecon.py +0 -0
  39. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/BayesianRecon.py +0 -0
  40. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/DeepLearningRecon.py +0 -0
  41. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/PrimalDualRecon.py +0 -0
  42. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/ReconEnums.py +0 -0
  43. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/ReconTools.py +0 -0
  44. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/__init__.py +0 -0
  45. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/AOT_Recon/_mainRecon.py +0 -0
  46. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/Config.py +0 -0
  47. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps/Settings.py +0 -0
  48. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps.egg-info/SOURCES.txt +0 -0
  49. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps.egg-info/dependency_links.txt +0 -0
  50. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps.egg-info/requires.txt +0 -0
  51. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/AOT_biomaps.egg-info/top_level.txt +0 -0
  52. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/README.md +0 -0
  53. {aot_biomaps-2.9.366 → aot_biomaps-2.9.368}/setup.cfg +0 -0
@@ -217,3 +217,20 @@ def next_power_of_2(n):
217
217
  """Calculate the next power of 2 greater than or equal to n."""
218
218
  return int(2 ** np.ceil(np.log2(n)))
219
219
 
220
+ def hex_to_binary_profile(hex_string, n_piezos=192):
221
+ hex_string = hex_string.strip().replace(" ", "").replace("\n", "")
222
+ if set(hex_string.lower()) == {'f'}:
223
+ return np.ones(n_piezos, dtype=int)
224
+
225
+ try:
226
+ n_char = len(hex_string)
227
+ n_bits = n_char * 4
228
+ binary_str = bin(int(hex_string, 16))[2:].zfill(n_bits)
229
+ if len(binary_str) < n_piezos:
230
+ # Tronquer/padder en fonction de la taille réelle de la sonde
231
+ binary_str = binary_str.ljust(n_piezos, '0')
232
+ elif len(binary_str) > n_piezos:
233
+ binary_str = binary_str[:n_piezos]
234
+ return np.array([int(b) for b in binary_str])
235
+ except ValueError:
236
+ return np.zeros(n_piezos, dtype=int)
@@ -1,8 +1,8 @@
1
1
  from AOT_biomaps.Config import config
2
- from AOT_biomaps.AOT_Experiment.ExperimentTools import hex_to_binary_profile
3
2
  from ._mainAcoustic import AcousticField
4
3
  from .AcousticEnums import WaveType
5
4
  from .AcousticTools import detect_space_0_and_space_1, getAngle
5
+ from .AcousticTools import hex_to_binary_profile
6
6
 
7
7
  import os
8
8
  import numpy as np
@@ -170,7 +170,7 @@ class StructuredWave(AcousticField):
170
170
  fs_m_inv = abs(freqs[idx_max])
171
171
 
172
172
  fs_key = fs_m_inv # Fréquence spatiale en mm^-1
173
- return int(fs_key / (1000* self.params['dx'])) # Convert number decimation (f_s = n * delta_x)
173
+ return int(fs_key / (1/(len(profile)*self.params.general['dx'])))
174
174
  except Exception as e:
175
175
  print(f"Error calculating decimation frequency: {e}")
176
176
  return None
@@ -85,7 +85,7 @@ from .AOT_Recon.AOT_PotentialFunctions.RelativeDifferences import *
85
85
  from .Config import config
86
86
  from .Settings import *
87
87
 
88
- __version__ = '2.9.366'
88
+ __version__ = '2.9.368'
89
89
  __process__ = config.get_process()
90
90
 
91
91
  def initialize(process=None):
@@ -227,6 +227,8 @@ def initialize(process=None):
227
227
 
228
228
 
229
229
 
230
+
231
+
230
232
 
231
233
 
232
234
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AOT_biomaps
3
- Version: 2.9.366
3
+ Version: 2.9.368
4
4
  Summary: Acousto-Optic Tomography
5
5
  Home-page: https://github.com/LucasDuclos/AcoustoOpticTomography
6
6
  Author: Lucas Duclos
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AOT_biomaps
3
- Version: 2.9.366
3
+ Version: 2.9.368
4
4
  Summary: Acousto-Optic Tomography
5
5
  Home-page: https://github.com/LucasDuclos/AcoustoOpticTomography
6
6
  Author: Lucas Duclos
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='AOT_biomaps',
5
- version='2.9.366',
5
+ version='2.9.368',
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
 
@@ -385,6 +385,8 @@ setup(
385
385
 
386
386
 
387
387
 
388
+
389
+
388
390
 
389
391
 
390
392
 
File without changes
File without changes