AOT-biomaps 2.9.270__py3-none-any.whl → 2.9.273__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.

Potentially problematic release.


This version of AOT-biomaps might be problematic. Click here for more details.

@@ -269,6 +269,7 @@ def MLEM_sparseCSR_pycuda(SMatrix, y, numIterations, isSavingEachIteration, tumo
269
269
  stream = drv.Stream()
270
270
 
271
271
  # allocate device buffers
272
+ y = y.flatten().astype(np.float32)
272
273
  y_gpu = drv.mem_alloc(y.nbytes)
273
274
  drv.memcpy_htod_async(y_gpu, y.astype(dtype), stream)
274
275
 
@@ -387,6 +388,7 @@ def MLEM_sparseSELL_pycuda(SMatrix, y, numIterations, isSavingEachIteration, tum
387
388
  stream = drv.Stream()
388
389
 
389
390
  # device buffers
391
+ y = y.flatten().astype(np.float32)
390
392
  y_gpu = drv.mem_alloc(y.nbytes)
391
393
  drv.memcpy_htod_async(y_gpu, y.astype(dtype), stream)
392
394
 
@@ -462,4 +464,4 @@ def MLEM_sparseSELL_pycuda(SMatrix, y, numIterations, isSavingEachIteration, tum
462
464
  # --- CONTEXT FIX: Pop the context ---
463
465
  if SMatrix and hasattr(SMatrix, 'ctx') and SMatrix.ctx:
464
466
  SMatrix.ctx.pop()
465
- # ------------------------------------
467
+ # ------------------------------------
@@ -92,11 +92,13 @@ class SparseSMatrix_SELL:
92
92
  def allocate(self):
93
93
  """
94
94
  Build SELL-C-σ directly from manip AcousticFields in streaming blocks.
95
+ NOTE: This is the logic of allocate_sell_c_sigma_direct from the working class.
95
96
  """
96
- # Ensures the module is loaded before attempting to retrieve functions
97
97
  if self.sparse_mod is None:
98
- raise RuntimeError("CUDA module not loaded. Check compilation.")
99
-
98
+ raise RuntimeError("CUDA module not loaded. Check compilation.")
99
+
100
+ # NOTE: Les noms de kernel (count_nnz_rows_kernel, fill_kernel__SELL) sont utilisés
101
+ # car ils sont présents dans la classe fonctionnelle.
100
102
  count_kernel = self.sparse_mod.get_function("count_nnz_rows_kernel")
101
103
  fill_kernel = self.sparse_mod.get_function("fill_kernel__SELL")
102
104
 
@@ -211,11 +213,10 @@ class SparseSMatrix_SELL:
211
213
  dense_gpu.free()
212
214
  row_nnz_host_gpu.free()
213
215
 
214
- # At this point sell_values_gpu and sell_colinds_gpu are filled.
215
-
216
216
  # 4) compute norm_factor_inv via GPU accumulate (col sums)
217
217
  self.compute_norm_factor()
218
-
218
+
219
+ # --- Ajout de la fonction de normalisation (qui fonctionne) ---
219
220
  def compute_norm_factor(self):
220
221
  """
221
222
  Accumulate column sums on GPU using accumulate_columns_atomic, then compute inverse.
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.270'
88
+ __version__ = '2.9.273'
89
89
  __process__ = config.get_process()
90
90
 
91
91
  def initialize(process=None):
@@ -132,5 +132,8 @@ def initialize(process=None):
132
132
 
133
133
 
134
134
 
135
+
136
+
137
+
135
138
 
136
139
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AOT_biomaps
3
- Version: 2.9.270
3
+ Version: 2.9.273
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
  AOT_biomaps/Config.py,sha256=ghEOP1n8aO1pR-su13wMeAZAxZRfry5hH67NbtZ8SqI,3614
2
2
  AOT_biomaps/Settings.py,sha256=v8fPhnvvcfBJP29m1RLOTEr3jndGLGwbUiORXmsj2Bo,2853
3
- AOT_biomaps/__init__.py,sha256=iEepgwL2rWJA8lbRj13CVqHYGC2VHsTf6zp7mQFm480,4202
3
+ AOT_biomaps/__init__.py,sha256=hK0ELdqZ-6pOzjErDB6VoduECV7kSsfpFnJW-t_94Xk,4208
4
4
  AOT_biomaps/AOT_Acoustic/AcousticEnums.py,sha256=s5kXa6jKzbS4btwbubrVcynLOr0yg5tth5vL_FGfbMk,1802
5
5
  AOT_biomaps/AOT_Acoustic/AcousticTools.py,sha256=al7xXKMY5e-qQQ7nrQVPVAmqYiB320OluNlY6ti8iKc,7539
6
6
  AOT_biomaps/AOT_Acoustic/FocusedWave.py,sha256=3kGKKDx_3Msy5COYqIwzROPORGWvNjw8UsDanBfkMXE,11037
@@ -31,7 +31,7 @@ AOT_biomaps/AOT_Recon/_mainRecon.py,sha256=exoa2UBMfMHjemxAU9dW0mhEfsP6Oe1qjSfrT
31
31
  AOT_biomaps/AOT_Recon/AOT_Optimizers/DEPIERRO.py,sha256=qA1n722GLQJH3V8HcLr5q_GxEwBS_NRlIT3E6JZk-Ag,9479
32
32
  AOT_biomaps/AOT_Recon/AOT_Optimizers/LS.py,sha256=N7v1xN9I-adIe3c20LN9Drc4-fBSLc9SEmJS8B3Zmag,4343
33
33
  AOT_biomaps/AOT_Recon/AOT_Optimizers/MAPEM.py,sha256=vQLCB0L4FSXJKn2_6kdIdWrI6WZ82KuqUh7CSqBGVuo,25766
34
- AOT_biomaps/AOT_Recon/AOT_Optimizers/MLEM.py,sha256=di5ZpC4ID6CgkFdfaENTjtnnsvf2c331NHyPJqukyUM,21181
34
+ AOT_biomaps/AOT_Recon/AOT_Optimizers/MLEM.py,sha256=XxaLoFLfhRrRg-rEB8Tvv06IjwQzAXUPgxLV7ovt9PY,21271
35
35
  AOT_biomaps/AOT_Recon/AOT_Optimizers/PDHG.py,sha256=5w4klYKAct9_gnlyocIiJfDrQUdz_VhXQVSpfjrjvNU,7927
36
36
  AOT_biomaps/AOT_Recon/AOT_Optimizers/__init__.py,sha256=tNGVulINaqQZzcs5cvCMAT5ypGdoFWRnxtl9y7ePECk,106
37
37
  AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Huber.py,sha256=dRd1t5OBag_gVmfji3L0QrA1GJ_702LcCkLH32Bot0M,3285
@@ -39,9 +39,9 @@ AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Quadratic.py,sha256=wTbzcXxMdEl9ReE
39
39
  AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/RelativeDifferences.py,sha256=ZlWaKsNPCMfy4fWxYFT2pSoKMbysQkJH4N1WbbWncq4,2493
40
40
  AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/__init__.py,sha256=RwrJdLOFbAFBFnRxo5xdlOyeZgtQRDaRWDN9-uCGUiY,84
41
41
  AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_CSR.py,sha256=rZigEUe0d1reCBU-IT4LexbO5uUyps-ZkzhdH3j0PLc,12408
42
- AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_SELL.py,sha256=jSwtfQvhZi9R0tG7tDsWwyXoftgbq4FQi9Yxoahuzhw,12866
42
+ AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/SparseSMatrix_SELL.py,sha256=WBtCz4P2O4LXZ7HkB46yFEB9gQWy-XdzK-JxtGG36eI,13029
43
43
  AOT_biomaps/AOT_Recon/AOT_SparseSMatrix/__init__.py,sha256=8nou-hqjQjuCTLhoL5qv4EM_lMPFviAZAZKSPhi84jE,67
44
- aot_biomaps-2.9.270.dist-info/METADATA,sha256=TUjwBnJTI1xN-RlfNNphbzWZrgH1rtwmLNxwZm6m6GA,700
45
- aot_biomaps-2.9.270.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- aot_biomaps-2.9.270.dist-info/top_level.txt,sha256=6STF-lT4kaAnBHJYCripmN5mZABoHjMuY689JdiDphk,12
47
- aot_biomaps-2.9.270.dist-info/RECORD,,
44
+ aot_biomaps-2.9.273.dist-info/METADATA,sha256=n4GMWITGBZlyl-q0vHENUeYaE1SlThrq4OgpvFBhEi0,700
45
+ aot_biomaps-2.9.273.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ aot_biomaps-2.9.273.dist-info/top_level.txt,sha256=6STF-lT4kaAnBHJYCripmN5mZABoHjMuY689JdiDphk,12
47
+ aot_biomaps-2.9.273.dist-info/RECORD,,