AOT-biomaps 2.9.363__py3-none-any.whl → 2.9.364__py3-none-any.whl

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.
@@ -1,4 +1,5 @@
1
1
  from AOT_biomaps.Config import config
2
+ from AcoustoOpticTomography.AOT_biomaps.AOT_Experiment.ExperimentTools import hex_to_binary_profile
2
3
  from ._mainAcoustic import AcousticField
3
4
  from .AcousticEnums import WaveType
4
5
  from .AcousticTools import detect_space_0_and_space_1, getAngle
@@ -156,7 +157,20 @@ class StructuredWave(AcousticField):
156
157
  int: Decimation frequency.
157
158
  """
158
159
  try:
159
- return 1/(self.pattern.space_0 + self.pattern.space_1)/self.params['element_width']
160
+ profile = hex_to_binary_profile(self.getName_field()[6:-4], self.params['num_elements'])
161
+
162
+ if set(self.getName_field()[6:-4].lower().replace(" ", "")) == {'f'}:
163
+ fs_key = 0.0 # fs_key est en mm^-1 (0.0 mm^-1)
164
+ else:
165
+ ft_prof = np.fft.fft(profile)
166
+ idx_max = np.argmax(np.abs(ft_prof[1:len(profile)//2])) + 1
167
+ freqs = np.fft.fftfreq(len(profile), d=self.params['dx'])
168
+
169
+ # freqs est en m^-1 car delta_x est en mètres.
170
+ fs_m_inv = abs(freqs[idx_max])
171
+
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)
160
174
  except Exception as e:
161
175
  print(f"Error calculating decimation frequency: {e}")
162
176
  return None
AOT_biomaps/__init__.py CHANGED
@@ -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.363'
88
+ __version__ = '2.9.364'
89
89
  __process__ = config.get_process()
90
90
 
91
91
  def initialize(process=None):
@@ -225,5 +225,6 @@ def initialize(process=None):
225
225
 
226
226
 
227
227
 
228
+
228
229
 
229
230
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AOT_biomaps
3
- Version: 2.9.363
3
+ Version: 2.9.364
4
4
  Summary: Acousto-Optic Tomography
5
5
  Home-page: https://github.com/LucasDuclos/AcoustoOpticTomography
6
6
  Author: Lucas Duclos
@@ -1,12 +1,12 @@
1
1
  AOT_biomaps/Config.py,sha256=ghEOP1n8aO1pR-su13wMeAZAxZRfry5hH67NbtZ8SqI,3614
2
2
  AOT_biomaps/Settings.py,sha256=v8fPhnvvcfBJP29m1RLOTEr3jndGLGwbUiORXmsj2Bo,2853
3
- AOT_biomaps/__init__.py,sha256=zk35QRhwc7B3tvwuqdebCl3ta7phMGwg-eZJn4f5bSU,4388
3
+ AOT_biomaps/__init__.py,sha256=Y1kheCVLkJQzLOV4xb0po9qhfKUOkBV8bdbFvEWLc8w,4390
4
4
  AOT_biomaps/AOT_Acoustic/AcousticEnums.py,sha256=s5kXa6jKzbS4btwbubrVcynLOr0yg5tth5vL_FGfbMk,1802
5
5
  AOT_biomaps/AOT_Acoustic/AcousticTools.py,sha256=h2sCtGVcDtyLtEF1q7sLZmuWivWmesVGUBPnW-ndQqc,7535
6
6
  AOT_biomaps/AOT_Acoustic/FocusedWave.py,sha256=3kGKKDx_3Msy5COYqIwzROPORGWvNjw8UsDanBfkMXE,11037
7
7
  AOT_biomaps/AOT_Acoustic/IrregularWave.py,sha256=yZhtxkR6zlciRcEpdTR0BAhvgQl40XHKFaF8f4VXarE,3035
8
8
  AOT_biomaps/AOT_Acoustic/PlaneWave.py,sha256=xza-rj5AUWDecLkGDxRcULrwZVWeBvGnEP2d51TyR04,1447
9
- AOT_biomaps/AOT_Acoustic/StructuredWave.py,sha256=jTLVlOhYLWJb5MxZPxhq3OFVlz2McoyMPBmfLvnekDU,18209
9
+ AOT_biomaps/AOT_Acoustic/StructuredWave.py,sha256=TO8in7HfPx5rZ_9pIi9__mKsaZbHRVQ1lcRLdr4f-aw,19020
10
10
  AOT_biomaps/AOT_Acoustic/__init__.py,sha256=t9M2rRqa_L9pk7W2FeELTkHEMuP4DBr4gBRldMqsQbg,491
11
11
  AOT_biomaps/AOT_Acoustic/_mainAcoustic.py,sha256=RdmhRF1i0KAlpsP7_wnZ7F4J27br3eUc4XR91Qq7C64,44158
12
12
  AOT_biomaps/AOT_Experiment/ExperimentTools.py,sha256=aFvJw6J_jfFVTDFnG7J3a61SHEgORdZKZS0UI82VMaY,2637
@@ -42,7 +42,7 @@ AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/__init__.py,sha256=RwrJdLOFbAFBFnRx
42
42
  AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_CSR.py,sha256=RACc2P5oxmp0uPLAGnNj9mEtAxa_OlepNgCawKij3jI,12062
43
43
  AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_SELL.py,sha256=ti3dZQsb_Uu62C7Bn65Z-yf-R5NKCFsmnBT5GlLd_HY,15138
44
44
  AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/__init__.py,sha256=8nou-hqjQjuCTLhoL5qv4EM_lMPFviAZAZKSPhi84jE,67
45
- aot_biomaps-2.9.363.dist-info/METADATA,sha256=VXAfn0-XO5Slj_c2LUfydgcrNxIlK9r13cdwD0S9UnA,700
46
- aot_biomaps-2.9.363.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
- aot_biomaps-2.9.363.dist-info/top_level.txt,sha256=6STF-lT4kaAnBHJYCripmN5mZABoHjMuY689JdiDphk,12
48
- aot_biomaps-2.9.363.dist-info/RECORD,,
45
+ aot_biomaps-2.9.364.dist-info/METADATA,sha256=P-Sl6nmYVqvTZHQBspQLu6Hoh4S0CqllT_9BRbfLAWU,700
46
+ aot_biomaps-2.9.364.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
47
+ aot_biomaps-2.9.364.dist-info/top_level.txt,sha256=6STF-lT4kaAnBHJYCripmN5mZABoHjMuY689JdiDphk,12
48
+ aot_biomaps-2.9.364.dist-info/RECORD,,