Added possibility to do partial normalization
This commit is contained in:
parent
535f25d710
commit
b7392204ad
3 changed files with 10 additions and 6 deletions
|
@ -44,7 +44,7 @@ cdef extern from "cosmopower.hpp" namespace "CosmoTool":
|
|||
void setFunction(CosmoFunction)
|
||||
void updateCosmology()
|
||||
void updatePhysicalCosmology()
|
||||
void normalize()
|
||||
void normalize(double)
|
||||
void setNormalization(double)
|
||||
double power(double)
|
||||
|
||||
|
@ -75,7 +75,7 @@ cdef class CosmologyPower:
|
|||
|
||||
self.power.updateCosmology()
|
||||
|
||||
def normalize(self,s8):
|
||||
def normalize(self,s8,k_max=-1):
|
||||
"""normalize(self, sigma8)
|
||||
|
||||
Compute the normalization of the power spectrum using sigma8.
|
||||
|
@ -84,7 +84,7 @@ cdef class CosmologyPower:
|
|||
sigma8 (float): standard deviation of density field smoothed at 8 Mpc/h
|
||||
"""
|
||||
self.power.SIGMA8 = s8
|
||||
self.power.normalize()
|
||||
self.power.normalize(k_max)
|
||||
|
||||
|
||||
def setFunction(self,funcname):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue