Fix negative base in power law bias
This commit is contained in:
parent
81d0e70965
commit
e55eee4b17
12 changed files with 153 additions and 195 deletions
|
@ -37,6 +37,12 @@ mylike.updateCosmology(cosmo)
|
|||
s_hat = np.fft.rfftn(np.random.randn(*box_in.N)) / box_in.Ntot ** (0.5)
|
||||
mylike.generateMockData(s_hat, state)
|
||||
|
||||
scale = 1.0
|
||||
L = mylike.logLikelihoodComplex(scale * s_hat, None)
|
||||
print(L)
|
||||
|
||||
quit()
|
||||
|
||||
if test_scaling:
|
||||
all_scale = np.linspace(0.5, 1.5, 100)
|
||||
all_lkl = np.empty(all_scale.shape)
|
||||
|
@ -52,6 +58,7 @@ if test_scaling:
|
|||
ax.axvline(x=1, color='k')
|
||||
ax.set_xlabel(r'$\hat{s}$ scaling')
|
||||
ax.set_ylabel(r'$\mathcal{L}$')
|
||||
ax.set_xlim(all_scale.min(), all_scale.max())
|
||||
fig.tight_layout()
|
||||
fig.savefig('../figs/scaling_test.png')
|
||||
fig.clf()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue