Subida inicial del proyecto
This commit is contained in:
1 parent
9e813feaeb
commit
129375d321
6 files changed
+2
-41
No files matched your search
+1
-32
@@ -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,33 +105,7 @@ 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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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.
Reference in new issue
Block a user