AOT-biomaps 2.9.218__tar.gz → 2.9.220__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.
Potentially problematic release.
This version of AOT-biomaps might be problematic. Click here for more details.
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AlgebraicRecon.py +32 -15
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/BayesianRecon.py +2 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/PrimalDualRecon.py +0 -6
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/__init__.py +3 -1
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps.egg-info/PKG-INFO +1 -1
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/PKG-INFO +1 -1
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/setup.py +3 -1
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/AcousticEnums.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/AcousticTools.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/FocusedWave.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/IrregularWave.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/PlaneWave.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/StructuredWave.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Acoustic/_mainAcoustic.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Experiment/Focus.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Experiment/Tomography.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Experiment/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Experiment/_mainExperiment.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Optic/Absorber.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Optic/Laser.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Optic/OpticEnums.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Optic/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Optic/_mainOptic.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/DEPIERRO.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/LS.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/MAPEM.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/MLEM.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/PDHG.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Huber.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Quadratic.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/RelativeDifferences.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AnalyticRecon.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/DeepLearningRecon.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/ReconEnums.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/ReconTools.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/__init__.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/_mainRecon.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/Config.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/Settings.py +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps.egg-info/SOURCES.txt +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps.egg-info/dependency_links.txt +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps.egg-info/requires.txt +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps.egg-info/top_level.txt +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/README.md +0 -0
- {aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/setup.cfg +0 -0
|
@@ -700,29 +700,46 @@ class AlgebraicRecon(Recon):
|
|
|
700
700
|
if withTumor:
|
|
701
701
|
if self.experiment.AOsignal_withTumor is None:
|
|
702
702
|
raise ValueError("AO signal with tumor is not available. Please generate AO signal with tumor the experiment first in the experiment object.")
|
|
703
|
-
else:
|
|
704
|
-
y = self.experiment.AOsignal_withTumor
|
|
705
703
|
else:
|
|
706
704
|
if self.experiment.AOsignal_withoutTumor is None:
|
|
707
705
|
raise ValueError("AO signal without tumor is not available. Please generate AO signal without tumor the experiment first in the experiment object.")
|
|
708
|
-
else:
|
|
709
|
-
y = self.experiment.AOsignal_withoutTumor
|
|
710
706
|
|
|
711
707
|
if self.optimizer.value == OptimizerType.MLEM.value:
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
708
|
+
if withTumor:
|
|
709
|
+
self.reconPhantom, self.indices = MLEM(SMatrix=self.SMatrix,
|
|
710
|
+
y=self.experiment.AOsignal_withTumor,
|
|
711
|
+
numIterations=self.numIterations,
|
|
712
|
+
isSavingEachIteration=self.isSavingEachIteration,
|
|
713
|
+
withTumor=withTumor,
|
|
714
|
+
use_multi_gpu= self.isMultiGPU,
|
|
715
|
+
use_numba= self.isMultiCPU,
|
|
716
|
+
max_saves=self.maxSaves
|
|
717
|
+
)
|
|
718
|
+
else:
|
|
719
|
+
self.reconLaser, self.indices = MLEM(SMatrix=self.SMatrix,
|
|
720
|
+
y=self.experiment.AOsignal_withoutTumor,
|
|
721
|
+
numIterations=self.numIterations,
|
|
722
|
+
isSavingEachIteration=self.isSavingEachIteration,
|
|
723
|
+
withTumor=withTumor,
|
|
724
|
+
use_multi_gpu= self.isMultiGPU,
|
|
725
|
+
use_numba= self.isMultiCPU,
|
|
726
|
+
max_saves=self.maxSaves
|
|
727
|
+
)
|
|
721
728
|
elif self.optimizer.value == OptimizerType.LS.value:
|
|
722
729
|
if self.alpha is None:
|
|
723
730
|
raise ValueError("Alpha (regularization parameter) must be set for LS reconstruction.")
|
|
724
|
-
|
|
725
|
-
|
|
731
|
+
if withTumor:
|
|
732
|
+
self.reconPhantom, self.indices = LS(SMatrix=self.SMatrix,
|
|
733
|
+
y=self.experiment.AOsignal_withTumor,
|
|
734
|
+
numIterations=self.numIterations,
|
|
735
|
+
isSavingEachIteration=self.isSavingEachIteration,
|
|
736
|
+
withTumor=withTumor,
|
|
737
|
+
alpha=self.alpha,
|
|
738
|
+
max_saves=self.maxSaves,
|
|
739
|
+
)
|
|
740
|
+
else:
|
|
741
|
+
self.reconLaser, self.indices = LS(SMatrix=self.SMatrix,
|
|
742
|
+
y=self.experiment.AOsignal_withoutTumor,
|
|
726
743
|
numIterations=self.numIterations,
|
|
727
744
|
isSavingEachIteration=self.isSavingEachIteration,
|
|
728
745
|
withTumor=withTumor,
|
|
@@ -66,6 +66,8 @@ class BayesianRecon(AlgebraicRecon):
|
|
|
66
66
|
dir_name += f'_Beta_{self.beta}_Sigma_{self.sigma}'
|
|
67
67
|
|
|
68
68
|
results_dir = os.path.join(self.saveDir, dir_name)
|
|
69
|
+
if not os.path.exists(results_dir):
|
|
70
|
+
os.makedirs(results_dir)
|
|
69
71
|
|
|
70
72
|
if os.path.exists(os.path.join(results_dir,"reconIndices.npy")):
|
|
71
73
|
return (True, results_dir)
|
|
@@ -148,12 +148,6 @@ class PrimalDualRecon(AlgebraicRecon):
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
def _convexReconPython(self, withTumor):
|
|
151
|
-
if withTumor:
|
|
152
|
-
y=self.experiment.AOsignal_withTumor
|
|
153
|
-
|
|
154
|
-
else:
|
|
155
|
-
y=self.experiment.AOsignal_withoutTumor
|
|
156
|
-
|
|
157
151
|
if self.optimizer == OptimizerType.CP_TV:
|
|
158
152
|
if withTumor:
|
|
159
153
|
self.reconPhantom, self.indices = CP_TV(
|
|
@@ -82,7 +82,7 @@ from .AOT_Recon.AOT_PotentialFunctions.RelativeDifferences import *
|
|
|
82
82
|
from .Config import config
|
|
83
83
|
from .Settings import *
|
|
84
84
|
|
|
85
|
-
__version__ = '2.9.
|
|
85
|
+
__version__ = '2.9.220'
|
|
86
86
|
__process__ = config.get_process()
|
|
87
87
|
|
|
88
88
|
def initialize(process=None):
|
|
@@ -252,6 +252,8 @@ def initialize(process=None):
|
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
|
|
255
|
+
|
|
256
|
+
|
|
255
257
|
|
|
256
258
|
|
|
257
259
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='AOT_biomaps',
|
|
5
|
-
version='2.9.
|
|
5
|
+
version='2.9.220',
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
include_package_data=True,
|
|
8
8
|
install_requires=[
|
|
@@ -227,6 +227,8 @@ setup(
|
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
|
|
230
|
+
|
|
231
|
+
|
|
230
232
|
|
|
231
233
|
|
|
232
234
|
|
|
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
|
{aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/DEPIERRO.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_Optimizers/__init__.py
RENAMED
|
File without changes
|
{aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/Huber.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aot_biomaps-2.9.218 → aot_biomaps-2.9.220}/AOT_biomaps/AOT_Recon/AOT_PotentialFunctions/__init__.py
RENAMED
|
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
|