Subida inicial del proyecto

This commit is contained in:
Gabriel Quispe committed 2025-04-09 02:13:28 +02:00
1 parent 9e813feaeb
commit 129375d321
6 files changed
+3 -42

No files matched your search

+2 -33
View File
@@ -84,12 +84,7 @@ class SHD:
l,m = A[0][n],A[1][n] l,m = A[0][n],A[1][n]
return l,m return l,m
def __init__(self,name="SHD",Lmin=2,Lmax=10,debug=False, def __init__(self,name="SHD",Lmin=2,Lmax=10,debug=False):
radiusMode = "geometric",
expansionMode = "abs"):
self.__availableRadiusModes = ["expansion","geometric"]
self.__availableExpansionModes = ["fluct","abs"]
self.__DEBUG = debug self.__DEBUG = debug
@@ -110,34 +105,8 @@ class SHD:
ch.setLevel(logging.INFO) ch.setLevel(logging.INFO)
ch.setFormatter(formatter) ch.setFormatter(formatter)
#Create other logger. Log to file, with level DEBUG
fh = logging.FileHandler(f'{self.__name}.log')
fh.setLevel(logging.DEBUG)
fh.setFormatter(formatter)
self.logger.addHandler(ch) self.logger.addHandler(ch)
self.logger.addHandler(fh)
######################################################
if radiusMode not in self.__availableRadiusModes:
self.logger.error("Radius mode {} not available. Available modes are: {}".format(radiusMode,self.__availableRadiusModes))
raise ValueError
else:
self.__radiusMode = radiusMode
if expansionMode not in self.__availableExpansionModes:
self.logger.error("Traj mode {} not available. Available modes are: {}".format(expansionMode,self.__availableExpansionModes))
raise ValueError
else:
self.__expansionMode = expansionMode
if self.__radiusMode == "expansion" and self.__expansionMode == "fluct":
#Not compatible
self.logger.error("Radius mode {} and traj mode {} not compatible".format(self.__radiusMode,self.__expansionMode))
raise ValueError
def __setGrid(self): def __setGrid(self):
self.gridSize = self.thetaGrid.shape[0] self.gridSize = self.thetaGrid.shape[0]
self.grid = np.asarray([self.thetaGrid,self.phiGrid]).T self.grid = np.asarray([self.thetaGrid,self.phiGrid]).T
+1 -1
View File
@@ -11,7 +11,7 @@ import Codigo3D_AjusteHelfrich as c3
def calculate_al(Datos,Lmaximo): def calculate_al(Datos,Lmaximo):
cdata = SHD(name="SPH",Lmin=0,Lmax=Lmaximo,expansionMode="abs",radiusMode="expansion") # def clase cdata = SHD(name="SPH",Lmin=0,Lmax=Lmaximo) # def clase
### CARGAMOS DATOS A LA CLASE ### CARGAMOS DATOS A LA CLASE
-8
View File
@@ -1,8 +0,0 @@
09-Apr-2025 01:30:39 - sphAnalysis - INFO - Generating icosahedral grid with 3 subdivisions ...
09-Apr-2025 01:30:39 - sphAnalysis - INFO - Distributing trajectory points along grid ...
09-Apr-2025 01:31:47 - sphAnalysis - INFO - Performing spherical harmonic expansion ...
09-Apr-2025 01:31:51 - sphAnalysis - INFO - Realizando el calculo de valores medios...
09-Apr-2025 01:32:35 - sphAnalysis - INFO - Generating icosahedral grid with 3 subdivisions ...
09-Apr-2025 01:32:36 - sphAnalysis - INFO - Distributing trajectory points along grid ...
09-Apr-2025 01:33:45 - sphAnalysis - INFO - Performing spherical harmonic expansion ...
09-Apr-2025 01:33:50 - sphAnalysis - INFO - Realizando el calculo de valores medios...
Binary file not shown.
Binary file not shown.
Binary file not shown.