Code: Select all

`camb.initialpower.SplinedInitialPower(**kwargs) `

Code: Select all

`k, P(K)`

I am unable to locate the proper function call to extract the Splined output. I have tried :

Code: Select all

```
np.random.seed(0)
k = np.logspace(np.log10(1), np.log10(1000.0), num=10)
ran = np.random.randint(5,16,size=np.shape(k)[0])
pk2 = np.power(k,0.2)*(ran/10.)
inflation_params2 = initialpower.SplinedInitialPower()
#inflation_params2.set_scalar_log_regular(1.0,1000.0,pk2)
inflation_params2.set_scalar_table(k,pk2)
```

Code: Select all

`camb.get_transfer_functions(pars).power_spectra_from_transfer(inflation_params2)`

Also is there a provision, to implement the boundary conditions on the spline at the two ends of the spectrum with this module(or other) ?

thanks